Thursday, 24 May 2012
 Home arrow Blog arrow How to Add and Delete Users in Ubuntu
   
Main Menu
Home
News
Blog
Links
Search
FAQs
Spider
Articles
@intrenet
Free Softwares
Break for fun
Friends VIdeos
Techno videos
Contact Us
Disclaimer
Guest Book
Speed test
V.E.C. Calculator
IPv4 Subnet Calc
IPv6 Subnet Calc
Byte Converter
Converter
GMT/UTC Time
Bandwidth Calc
Allinone Calc
IANA Port Numbers
Country Call Codes
Pk Postal Codes
Surf Anonumously
Visitors Counter
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday221
mod_vvisit_counterYesterday302
mod_vvisit_counterThis week783
mod_vvisit_counterThis month5332
mod_vvisit_counterAll126008
 
 
 
 


How to Add and Delete Users in Ubuntu PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Amanatullah khalil   
Saturday, 23 May 2009

How to Add and Delete Users in Ubuntu

 

The process for managing local users and groups is straight forward and differs very little from most other GNU/Linux operating systems. Ubuntu and other Debian based distributions, encourage the use of the “adduser” package for account management.

  • 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

    Deleting an account does not remove their respective home folder. It is up to you whether or not you wish to delete the folder manually or keep it according to your desired retention policies.

    Remember, any user added later on with the same UID/GID as the previous owner will now have access to this folder if you have not taken the necessary precautions.

    You may want to change these UID/GID values to something more appropriate, such as the root account, and perhaps even relocate the folder to avoid future conflicts:

    sudo chown -R root:root /home/username/
    sudo mkdir /home/archived_users/
    sudo mv /home/username /home/archived_users/
  • 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
  • ________________________________________________________________________________
  • Thanks to http://techgurulive.com/2009/01/06/how-to-add-and-delete-users-in-ubuntu/
 
< Prev   Next >
 
 
 
csatpk Newsflash
Statistics
OS: Linux h
PHP: 5.2.17
MySQL: 5.1.63-community-log
Time: 04:22
Caching: Disabled
GZIP: Disabled
Members: 3
News: 368
Web Links: 5
Visitors: 266686
Popular