0
I know that when a user is added using the useradd
command, it creates a backup of /etc/passwd
in /etc/passwd-
, and then add the new user into the /etc/passwd
. Suppose if by some chance the useradd
command fails to add new user to /etc/passwd
file, will the content of /etc/passwd
and /etc/passwd-
file be same or will the /etc/passwd-
file be rolled back to the original content before adding the new user?