mardi 22 juillet 2014

Ubuntu User Management


Root Users

  • If for some reason you wish to enable the root account, simply give it a password:

    sudo passwd 
     
    Sudo will prompt you for your password, and then ask you to supply a new password for root as shown below:

    [sudo] password for username: (enter your own password)
    Enter new UNIX password: (enter a new password for root)
    Retype new UNIX password: (repeat new password for root)
    passwd: password updated successfully 
     
  • To disable the root account, use the following passwd syntax:

    sudo passwd -l root 
     
  • You should read more on Sudo by checking out it's man page:

    man sudo
    

Adding and Deleting Users

  • To add a user account, use the following syntax, and follow the prompts to give the account a password and identifiable characteristics such as a full name, phone number, etc.

    sudo adduser username 
     
  • To delete a user account and its primary group, use the following syntax:

    sudo deluser username
    
  • To temporarily lock or unlock a user account, use the following syntax, respectively:

    sudo passwd -l username
    sudo passwd -u username 
     
  • To add or delete a personalized group, use the following syntax, respectively:

    sudo addgroup groupname
    sudo delgroup groupname 
     
  • To add a user to a group, use the following syntax:

    sudo adduser username groupname
TBD

Aucun commentaire:

Enregistrer un commentaire