Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 3
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
4. Linux account management
  


Adding a user and group by hand page 6 of 13


Now, I'll show you how to create your own user and group account. The best way to learn how to do this is to add a new user to the system manually. To begin, first make sure that your EDITOR environment variable is set to your favorite text editor:


# echo $EDITOR
vim

If it isn't, you can set EDITOR by typing something like:


# export EDITOR=/usr/bin/emacs

Now, type:


# vipw

You should now find yourself in your favorite text editor with the /etc/passwd file loaded up on the screen. When modifying system passwd and group files, it's very important to use the vipw and vigr commands. They take extra precautions to ensure that your critical passwd and group files are locked properly so they don't become corrupted.


Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact