useradd -g newuser newuser
The useradd program tries to create a group of the same name if no group is specified with -g option.
You might want to go with a few more options as well :) ex. useradd -g newuser -u 1325235 -c "New User" -d /home/newuser -m newuser
Rajanish Rai wrote:
thanks anish,
I tried useradd -n,but still getting the same problem.
rajanish
--- Anish Mathew <nedumannilanish@xxxxxxxxxxx> wrote:
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribetry useradd -n
anish
Rajanish Rai <rajanishrai@xxxxxxxxx> wrote: Hi,
I am facing a problem while executing 'useradd' command to add user on RedHat linux, if there is already a group with same name as user and '-g' option is not used to set primary usergroup.
Details to reproduce issue is as - (1)On RadHat linux system, a usergroup with name "newuser" already exists. (2)Tried to add user with name "newuser" using following command. useradd newuser (3)Got following problem - useradd: group newuser exists - if you want to add this user to that group, use -g
I was hoping to set "newuser" as primary usergroup while executing above command.
Pls let me know any possible workaround for the same.
Regards Rajanish Rai
__________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile
phone. http://mobile.yahoo.com/maildemo
-- redhat-list mailing list unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribehttps://www.redhat.com/mailman/listinfo/redhat-list
---------------------------------
ALL-NEW Yahoo! Messenger - all new features - even
more fun! --
redhat-list mailing list
unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
__________________________________ Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://celebrity.mail.yahoo.com
-- --
James McCartney Systems Programmer II COMP 4795757999
::::::::::::::
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list