LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I create accounts, groups and so on only using the command line? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-create-accounts-groups-and-so-on-only-using-the-command-line-202236/)

brynjarh 07-07-2004 01:08 PM

How do I create accounts, groups and so on only using the command line?
 
How do I create accounts, groups and so on only using the command line?

druuna 07-07-2004 01:22 PM

Create an account: useradd (or adduser)
Create a group: groupadd

Short examples:
useradd -c "comment" -d "homedir" -m <loginname>
groupadd <groupname>

There are more option, please read both manpages before experimenting.

Other commands that you might need/want:
userdel -> delete user
groupdel -> delete group
usermod -> modify user
groupmod -> modify group

Hope this gets you going.

brynjarh 07-07-2004 01:42 PM

Thanks, exactly what I needed to know. :)


All times are GMT -5. The time now is 05:50 PM.