Well useradd (or adduser which is symbolically linked to useradd) is the right command from the shell. Sounds like there is an error trying to update the /etc/groups file - by default a redhat system will create a new group which equates to the user name. Perhaps the permissions are wrong - a 'ls -l /etc/group' should look like this :
Another tactic would be to specify an existing group to see if that works (it wouldn't need to lock /etc/group for writing). For example -
/usr/sbin/useradd new_user -g users -n
-n suppresses the redhat specfic feature of creating a group equivalent to username.
Otherwise you could try using 'linuxconf' (with or without X) or even going to single user mode with 'init 1', mounting the /usr filesystem manually if necessary, then doing the '/usr/sbin/useradd....' again.
friend,
You can also try userconf.Just invoke that in the command line give the login name , name of the person and the group and also the UID number that's it a user is added.Give the password of your choice.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.