Chapter 15 Exam Flashcards

1
Q

Which files contain user account information?
(choose two)

/etc/shadow
/etc/group
/etc/passwords
/etc/passwd

A

/etc/shadow

/etc/passwd

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

Which user can view the /etc/shadow file?

Any member of the password group
No users
The root user
All users

A

The root user

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

Which command will display the UID, GID and groups your current user belongs to?

whoami
Who
id
about

A

id

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

Each user belongs to at least one group.
True or False?

True
False

A

True

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

Which command will display the users that are currently logged in to the system?

about
who
id
whoami

A

who

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

The sudo command allows regular users to…
…execute commands as another user.
…execute any command as root, after providing the root password.
…run any command as root, after providing the sudo password.
…run any commands as a system account without logging in.

A

…execute commands as another user.

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

Which of the following commands will display the group(s) a user belongs to?

all
id
whoami
group

A

id

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

Which of the following commands will display the groups that the user bob belongs to?

group bob
id bob
groups -a
all bob

A

id bob

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

The /etc/group file follows what structure?

group:GID:user_list
groups -a
user:group
group_name:password_placehoder:GID:user_list

A

group_name:password_placehoder:GID:user_list

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

A GID is associated with a group name.
True or False?
True
False

A

True

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

A user can belong to…

At least 16 groups
Only five groups
Only groups with a GID over 500
Only one group

A

At least 16 groups

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

Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users.
True or False?

True
False

A

True

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

In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user.
True or False?

True
False

A

True

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

Which of the following commands will display how long the system has been running since the last boot?
(choose two)

who
id
uptime
w

A

uptime

w

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

The /etc/shadow file contains plain-text passwords.
True or False?

True
False

A

False

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

Which command can be used to view the /etc/passwd file entries?

uptime
uppasswd
getpasswd
getent

A

getent

17
Q

All Linux systems allow administrators to log in as root.
True or False?

True
False

A

False

18
Q

What is the default user for the su command?

All users
The root user
Any member of the password group
The most recently created user

A

The root user

19
Q

Which command would allow a user to execute commands as root?

whoami
about
sudo
who
grep
A

sudo

20
Q

File permissions cannot be edited by the root user.
True or False?

True
False

A

False

21
Q

Which command is used to display only the user’s primary group?

who
id -g
man
whoami
about
A

id -g

22
Q

Traditional UNIX systems allowed users to belong to how many groups?

10,000
1
65,000
256
16
A

16

23
Q

What would an account with the UID 376 typically be used for?

White hat hackers.
Temporary employees.
New users with full privileges.
System service access.
Root user access.
A

System service access.

24
Q

Usernames cannot be the same as group names.
True or False?

True
False

A

False

25
Q

To display the group(s) a user belongs to use this command:

all
id
grep
group
whoami
A

id

26
Q

Which command will display the groups that the root user belongs to?

all -t
groups -a
id root
all
group -r
A

id root

27
Q

A value of 0 in the “minimum” password aging field means the user cannot change their password.
True or False?

True
False

A

False

28
Q

The “Epoch” began on January 1, 1970.
True or False?

True
False

A

True

29
Q

The last command displays reboot records…

By default
Never
Only when issued by the root user
After restarting the system
When issued with the -p switch
A

By default

30
Q

Sudo privileges allow users to execute commands as another user.
True or False?

True
False

A

True

31
Q

When using the sudo command to execute a command as the root user, the command prompts for the user’s own password, not that of the root user.
True or False?

True
False

A

True

32
Q

The first line of this command displays how long the system has been running since being rebooted.

su
getent
w
id
who
A

w

33
Q

The /etc/shadow file contains encrypted passwords.
True or False?

True
False

A

True

34
Q

Which command can be used to view the /var/log/wtmp file entries?

getent
uptime
getpasswd
uppasswd
last
A

last