Difference between revisions of "Add a User (Arch Linux)"

From GlassTTY
Jump to: navigation, search
(Created page with "Create a new user $ useradd -m -G wheel -s /bin/bash john If not asked to enter a password log in as root (or su) and set the password $ passwd john Log in as root (...")
 
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
   $ passwd john
 
   $ passwd john
 
Log in as root (or su) and change the root password
 
 
  $ passwd
 
  
 
Once the new user has been tested, any predefined default user can be deleted e.g.
 
Once the new user has been tested, any predefined default user can be deleted e.g.
  
   userdel -r pi
+
   userdel -r <user>

Latest revision as of 15:24, 15 April 2019

Create a new user

  $ useradd -m -G wheel -s /bin/bash john

If not asked to enter a password log in as root (or su) and set the password

  $ passwd john

Once the new user has been tested, any predefined default user can be deleted e.g.

  userdel -r <user>