System Account Management


Table of Contents

add user (cmd:useradd) 
Help 
show current user id & group id (cmd:id) 
Usage 
Help 
Groups in Unix 
Help 
Adding & removing groups (cmd:groupadd, cmd:groupdel) 
Add a user to a group 
hist 
hist 
change effect group 
change user id 
change user id 
How to make users change password on first login 
What is a easy way to diable a user login? 
What is a easy way to diable a user login? 
Manually adding accounts to shadow password file? 

add user (cmd:useradd) 

Help 

SYNOPSIS

useradd [ -c comment ] [ -d dir ] [ -e expire ]
     [ -f inactive ] [ -g group ] [ -G group [, group...]]
     [ -m [ -k skel_dir ]]
     [ -u uid [ -o]] [ -s shell ] login

OPTIONS

-c comment  Any  text  string.   It  is  generally  a  short
            description  of the login, and is currently used
            as the field for the  user's  full  name.   This
            information  is stored in the user's /etc/passwd
            entry.
-m     The user's home directory will  be  created  if  it
       does  not  exist.
-d dir      The home directory of the new user.  It defaults
            to  base_dir/login,  where  base_dir is the base
            directory for new  login  home  directories  and
            login is the new login name.