Adding user but not thier grp
Hello all,
I have "adduser -G emails $userinput" in a perl script but I would like to specify what group they are added to. With this command they are added to emails BUT I dont want them to get their own grp. example being if I add user josh then it creates a group josh. I would also as a bonus like to know how to get rid of the orphaned group josh. I added him as a test for the script then did a userdel josh but now group josh is vacant and wont let me delete as it is the "primary group for Josh"... =) Thanks |
Quote:
Quote:
|
The command to add a user is useradd, to add a group, groupadd, to delete a user, userdel and to delete a group, groupdel. To find out more about how to use them, read
Code:
man useradd |
Quote:
Also check out this post http://www.linuxquestions.org/questi...62#post4541362 Look at what Chirel said....maybe take a tip from him on how to assist people with minor learning moments. |
Quote:
|
Quote:
Tbones post is quite informative you may want to study it as it looks like it can help you a great deal. |
All times are GMT -5. The time now is 08:21 PM. |