Difference between revisions of "En:Managing Users"

From Sabayon Wiki
Jump to: navigation, search
Line 1: Line 1:
 
== Procedure to create a new user ==
 
== Procedure to create a new user ==
 
 
Open a terminal and login as root.
 
Open a terminal and login as root.
 
  Enter the following commands:
 
  Enter the following commands:
Line 8: Line 7:
 
  2) # passwd new_user_name
 
  2) # passwd new_user_name
 
  ''introducing the password for the new user''
 
  ''introducing the password for the new user''
 
  
 
For more information:  
 
For more information:  
Line 14: Line 12:
 
and  
 
and  
 
  # man passwd
 
  # man passwd
 
  
 
== Procedure to delete a user (Use with '''Caution!''') ==
 
== Procedure to delete a user (Use with '''Caution!''') ==
 
 
Open a terminal and login as root.
 
Open a terminal and login as root.
 
  Enter the following commands:
 
  Enter the following commands:
  1) # userdel user_name
+
  1) # userdel -r user_name
  deleted user!
+
  deleted user and your home directory
2) # cd /home
+
3) # rm -Rf user_name
+
''delete the user's /home directory''
+
 
+
 
For more information:  
 
For more information:  
 
  # man userdel  
 
  # man userdel  
 
and  
 
and  
 
  # man rm
 
  # man rm

Revision as of 17:22, 4 April 2013

Procedure to create a new user

Open a terminal and login as root.

Enter the following commands:
1) # useradd -G audio, cdrom, video, games, cdrw, users, netdev, entropy, portage, plugdev, pulse -m new_user_name
where the option -G show all groups of the new user,
with the -m option creates the /home/new_user_name.
2) # passwd new_user_name
introducing the password for the new user

For more information:

# man useradd 

and

# man passwd

Procedure to delete a user (Use with Caution!)

Open a terminal and login as root.

Enter the following commands:
1) # userdel -r user_name
deleted user and your home directory

For more information:

# man userdel 

and

# man rm