What are these files, and should I include them in the make image
process?
/etc/group-
/etc/passwd-
/etc/shadow-
BACKGROUND
My router is a TP-link C7 v5 running on an OpenWrt release 19.07.8 custom image.
I keep track of config files that changed and therefore should be included in the make image
process (through the FILES=files/
segment).
To find out what changed, I keep a running roster of what I hand-edit and also run a "before and after" (meld
) comparison of the router's /etc
contents.
After a hand-edit session in which I added a non-root user and made it superuser, I ran a comparison and got the following as "changed":
/etc/group
/etc/passwd
/etc/shadow
/etc/sudoers
As they are just the configs involved in the hand-edits, no surprise.
The comparison however yielded these files as "new":
/etc/group-
/etc/passwd-
/etc/shadow-
Inspection shows that each *- and * pair (e.g. passwd- and passwd) are related as follows:
- *- has an earlier last modification time than * (by a few minutes).
- *- and * are exactly the same contents (from loading them in nano).
My thoughts: That *- is a few minutes older suggests it being a backup file, but two having same contents contradicts that.
Hence my questions:
- What are the *- files for?
- Should I include them in the
make image
process or leave them out (as something temporary)? Thanks.