linux_shortcuts Flashcards
CHFI certificate
/etc/default/useradd
file contains default values used by the useradd utility when creating a user account, including:
/etc/group
The file that contains group definitions and memberships. same as active directory
/etc/login.defs
contains: Values used for the group and user ID numbers
/etc/passwd
contains the user account information
/etc/shadow
The file that contains the encrypted password as well as password and account expiry parameters for each user account.
/etc/skel
directory contains a set of configuration file templates that are copied into a new user’s home directory when it is created, including the following files:
passwd -d
removes the password from an account.
passwd -l username
Lock users out with this command
passwd -n
sets the minimum number of days a password exists before it can be changed.
passwd -S username
displays the status of the user account.
passwd -t
sets the number of days following the password expiration that the account will be disabled.
passwd -u
enables (unlocks) an account.
passwd -w
sets the number of days before the password expires that the user is warned.
passwd -x
sets the number of days before a user must change the password (password expiration time).
useradd - r
specifies that the user account is a system user