useradd Flashcards
1
Q
useradd
A
useradd is a low level utility for adding users. On Debian, administrators should usually use adduser(8) instead.
2
Q
useradd
- b
- c
- d
- D
- e
- f
A
- b, –base-dir BASE_DIR, Base directory for the home directory of the new account.
- c, –comment COMMENT, GECOS field of the new account.
- d, –home-dir HOME_DIR, Home directory of the new account.
- D, –defaults, Print or change default useradd configuration.
- e, –expiredate EXPIRE_DATE
- f, –inactive INACTIVE
3
Q
useradd
- g, –gid GROUP, Set primary group.
- G, –groups GROUPS, List supplementary groups.
- k, –skel SKEL_DIR, Use this alternative skeleton directory.
- K, –key KEY=VALUE, Override /etc/login.defs defaults.
- l, –no-log-init, Do not add the user to the lastlog and faillog database.
- m, –create-home
A
- M, –no-create-home
- N, –no-user-group, Do not create group with the same name as user.
- o, –non-unique
- p, –password PASSWORD
4
Q
useradd
- r
- R
- s
- u
- U
- Z
A
- r, –system, Create a system account.
- R, –root CHROOT
- s, –shell SHELL, Set login shell of new account.
- u, –uid UID
- U, –user-group, Create group with same name as user.
- Z, –selinux-user SEUSER, Use a specific SEUSER for SELinux user mapping.