5.1 Security - Basic Security and Identifying User Types Flashcards
What information is stored in /etc/passwd?
A) Username, information about a user’s password, user ID, group ID, user ID info, home directory, command/shell
B) Username, information about a user’s password, user ID, group ID, secondary group membership, home directory, command/shell
C) Username, information about a user’s password, user ID, group ID, last password change, home directory, command/shell
D) Username, information about a user’s password, user ID, group ID, number of days before password is to expire, home directory, command/shell
Username, information about a user’s password, user ID, group ID, user ID info, home directory, command/shell
What commands could you use to show the group membership of cloud_user? (Pick 3)
A) groups cloud_user
B) id cloud_user
C) cat /etc/groups | grep cloud_user
D) cat /etc/group | grep cloud_user
cat /etc/group | grep cloud_user
id cloud_user
groups cloud_user
System users normally __. (Pick 3)
A) Have a default password set
B) Do not have an interactive login shell
C) Have a lower UID than standard users
D) don’t have a home directory
don’t have a home directory
Have a lower UID than standard users
Do not have an interactive login shell
The /etc/shadow is readable by whom and what information is stored?
/etc/shadow file is readable only by root and users with root privileges and contains the encrypted passwords of the users, each on a separate line
- Username
- Encrypted password
- Date of last password change
- Minimum password age
- Maximum password age
- Password warning period
- Password inactivity period
- Account expiration date
- A reserved field
What utility can you preface a command with to execute with elevated privileges?
A) su -
B) su-do
C) sudo
D) exec
sudo