Hi,
useradd - create a new user or update default new user information
useradd is a low level utility for adding users
# useradd [options] name
# useradd name
# useradd -M username
Create user without home directory
# useradd -d /project name
Create a User with Different Home Directory
# useradd -u 510 username
Create a User with Specific User ID 510
# useradd -u 510 -g 555 username
Create a User with Specific Group ID 555 for username
# useradd -G project,training,developer,admin username
Add a User to Multiple Groups
# useradd -e 2016-09-07 username
Create a User with Account Expiry Date
# useradd -s /bin/sh username
Change User Login Shell
# useradd -g admin username
Add user to different primary group admin
# useradd -G developer username
Add user to different secondary group developer
# openssl passwd -crypt ilugc123
kwNmZBBYXy2H2
# useradd -p kwNmZBBYXy2H2 username
Creating a user along with encrypted password
# useradd -o username1 -u 505
# useradd -o username2 -u 505
# useradd -o username3 -u 505
Create multiple users with same UID
regards,
T.Dhanasekar
_____________________________________
ILUGC List: //www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/