1

Difference between passwd and passwd- file [closed]

view story
linux-howto

http://unix.stackexchange.com – Possible Duplicate: Who creates /etc/{group,gshadow,passwd,shadow}-? I have a strange passwd- file in /etc, notice the trailing dash: root@ubuntu:~# ls /etc/passw* /etc/passwd /etc/passwd- Notice the different permissions: root@ubuntu:~# ls -hl /etc/passw* -rw-r--r-- 1 root root 2.0K Oct 26 13:38 /etc/passwd -rw------- 1 root root 1.9K Oct 26 13:38 /etc/passwd- and the difference in content: root@ubuntu:~# diff /etc/passwd{,-} 39c39 < mysql:x:119:129:MySQL Server,,,:/nonexistent:/bin/false --- > mysql:x:119:129::/nonexistent:/bin/false What's happening here? root@ub (HowTos)