Difference between revisions of "En:Managing Users"

From Sabayon Wiki
Jump to: navigation, search
(Added i18n template and Codeboxes.)
Line 1: Line 1:
 +
{{I18n| [[De:Managing_Users|de]] [[En:Managing_Users|en]]}}
 +
 
== Procedure to create a new user ==
 
== Procedure to create a new user ==
Open a terminal and login as root.
+
 
Enter the following commands:
+
Open a terminal and login as root. Then enter the following commands:
1) # useradd -G audio, cdrom, video, games, cdrw, users, netdev, entropy, portage, plugdev, pulse -m new_user_name
+
{{Console|<pre class="clear">
''where the option '''-G''' show all groups of the new user,''
+
# useradd -G audio, cdrom, video, games, cdrw, users, netdev, entropy, portage, plugdev, pulse -m new_user_name
''with the '''-m''' option creates the ''/home/new_user_name''.''
+
# passwd new_user_name
2) # passwd new_user_name
+
</pre>}}
''introducing the password for the new user''
+
* where the option '''-G''' show all groups of the new user,
 +
* with the '''-m''' option creates the ''/home/new_user_name''.
 +
* and the second line introduce the password for the new user.
  
 
For more information:  
 
For more information:  
# man useradd  
+
{{Console|<pre class="clear">
and
+
# man useradd  
# man passwd
+
# man passwd
 +
</pre>}}
  
 
== Procedure to delete a user (Use with '''Caution!''') ==
 
== Procedure to delete a user (Use with '''Caution!''') ==
Open a terminal and login as root.
+
 
Enter the following commands:
+
Open a terminal and login as root. Then enter the following command:
1) # userdel -r user_name
+
{{Console|<pre class="clear"># userdel -r user_name</pre>}}
deleted user and deleted your home directory (option -r)
+
to delete the user ''user_name'' and his/her home directory (option '''-r''').
 +
 
 
For more information:  
 
For more information:  
# man userdel
+
{{Console|<pre class="clear"># man userdel</pre>}}

Revision as of 19:31, 4 April 2013

i18n: de en

Procedure to create a new user

Open a terminal and login as root. Then enter the following commands:

# useradd -G audio, cdrom, video, games, cdrw, users, netdev, entropy, portage, plugdev, pulse -m new_user_name
# passwd new_user_name
  • where the option -G show all groups of the new user,
  • with the -m option creates the /home/new_user_name.
  • and the second line introduce the password for the new user.

For more information:

# man useradd 
# man passwd

Procedure to delete a user (Use with Caution!)

Open a terminal and login as root. Then enter the following command:

# userdel -r user_name

to delete the user user_name and his/her home directory (option -r).

For more information:

# man userdel