Commands Help : useradd

  •  Create a new user or update default new user information

[SYNOPSIS] useradd OPTION USER
option
-sthe login shell for the new user account
# useradd -s /sbin/nologin user
-dhome directory for the new user account
# useradd -d /home/user user
-gforce use GROUP for the new user account
# useradd -g group user
-eset account expiration date to EXPIRE_DATE
# useradd -e 20081231 user
-uforce use the UID for the new user account
# useradd -u 550 user
-mcreate home directory for the new user account
# useradd -m user
-Mdo not create user's home directory(overrides /etc/login.defs)
# useradd -M user

Comments

Popular posts from this blog

Java : Variables Declaring

SQL Self JOIN