View previous topic :: View next topic |
Author |
Message |
TheCoop Veteran


Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Sun Jun 30, 2002 7:25 pm Post subject: user commands |
|
|
i couldnt find any man/info page on this, and i dont know the commands to find the relevant man pages, so here goes:
what are all the basic user commands, and what do they do? eg create a user, add/remove a user to a group, create the home directories/config files _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
 |
Scandium Retired Dev

Joined: 22 Apr 2002 Posts: 340 Location: Germany
|
Posted: Sun Jun 30, 2002 7:51 pm Post subject: |
|
|
useradd/adduser is used to add users to the system
useradd -d /home/scandium -G group1,group2 -m -s /bin/bash $USERNAME
-d specifies the home dir
-G is used for adding the user to groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace
-m creates the home directory
-s specifies the shell
$USERNAME = the login name of the new user
Afterwards you should do
passwd $USERNAME
to set the user's password
I hope this helps a bit
By the way: Thank you for joining the forums on my birthday, June 15th  |
|
Back to top |
|
 |
fghellar Bodhisattva


Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
 |
ZagiFlyer Tux's lil' helper


Joined: 19 Apr 2002 Posts: 93 Location: San Jose, CA
|
Posted: Mon Jul 01, 2002 8:31 pm Post subject: |
|
|
I am not saying this sarcastically -- it's how I got started in *nix:
1) ls /usr/bin and /usr/X11R6/bin
2) start reading man pages on what you find there (for starters) _________________ "Beer is proof that God loves us and wants us to be happy"
--Ben Franklin |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20589
|
Posted: Fri Nov 01, 2002 5:49 pm Post subject: |
|
|
Followups to Adding users. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
|