This document contains common account creation errors and the steps to troubleshoot them.
For more information about account creation, read our Account Creation Errors documentation.
You may receive this error for several reasons:
/etc/group files contain the immutable flag, the system cannot edit them and therefore cannot add the account to your server.
To check these files, run the following commands:
lsattr /etc/group lsattr /etc/shadow
If these files contain the immutable flag, they will return
i in these commands' output.
To remove this flag, run the following commands:
chattr -i /etc/passwd chattr -i /etc/group
/etc/gshadow file becomes corrupt, the system cannot correctly add the account to your server. For each group in the
/etc/groups file, the
/etc/gshadow file should include a line in the
groupname::: format, where
groupname represents the group name. Any
/etc/gshadow file that does not include these lines is corrupt.
To rebuild corrupt files, perform the following steps:
To move the existing
/etc/gshadow file, run the following command:
mv /etc/gshadow /etc/gshadow.corrupt
To rebuild the file, run the
If the system returns an
unable to add the user error, the user may already exist on your system. To check whether the user already exists, perform either of the following steps:
usernamerepresents the account username.
/etc/passwddirectory for an entry for that user.