5.1 Security - Basic Security and Identifying User Types Flashcards

1
Q

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

A

Username, information about a user’s password, user ID, group ID, user ID info, home directory, command/shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

cat /etc/group | grep cloud_user

id cloud_user

groups cloud_user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

don’t have a home directory

Have a lower UID than standard users

Do not have an interactive login shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The /etc/shadow is readable by whom and what information is stored?

A

/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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What utility can you preface a command with to execute with elevated privileges?

A) su -
B) su-do
C) sudo
D) exec

A

sudo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly