<< Fixing Eclipse Tomcat WTP Startup Issues | Home | Backing-up PostgreSQL Databases >>

Adding a Linux User

Adding a user to a Linux system is a task I do frequently enough that I wanted keep the steps handy:

Add the user account:

sudo useradd [USER_NAME]

Lock the user account:

sudo usermod -L [USER_NAME]

Setup the user's initial password:

sudo passwd [USER_NAME]

Add the user to a group (optional):

sudo usermod -a -G [GROUP_NAME] [USER_NAME]

Require the user to immediately change their password upon first login:

sudo chage -d 0 [USERNAME]

Unlock the useraccount:

sudo usermod -U [USERNAME]
Tags :
Social Bookmarks :  Add this post to Slashdot    Add this post to Digg    Add this post to Reddit    Add this post to Delicious    Add this post to Stumble it    Add this post to Google    Add this post to Technorati    Add this post to Bloglines    Add this post to Facebook    Add this post to Furl    Add this post to Windows Live    Add this post to Yahoo!

Export this post as PDF document  Export this post to PDF document




Add a comment Send a TrackBack