Chapter 16 Exam Flashcards

1
Q

UIDs 1-499 are usually reserved for what kind of users?

Remote log-in accounts
Are not used for user accounts, but for group accounts
System accounts, such as server processes
Log-in (human) users

A

System accounts, such as server processes

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

If a user is deleted, the files and directories that the user owned…

…will have no user owner.
…will have no UID owner.
…will show a UID as the owner, but not user name.
…are deleted as well.

A

…will show a UID as the owner, but not user name.

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

Which of the following options for the useradd command allows root to specify the UID to be associated with the account?

  • g
  • G
  • u
  • M
A

-u

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

Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?

  • G
  • u
  • g
  • U
A

-G

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

On a system that does not use UPG, the useradd command will also create a user group. For example, user bob, group bob.
True or False?

True
False

A

False

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

Which of the following commands will add the group extra to the user bob‘s secondary groups in addition to bob‘s current secondary groups?

usermod -G extra bob
usermod -ag bob extra
usermod -aG extra bob
usermod -a extra bob

A

usermod -aG extra bob

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

Which option for the usermod command can be used to specify a user’s group ID (either primary or secondary)?
(choose two)

  • s
  • g
  • S
  • G
A
  • g

- G

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

For non-root users, the passwd command can only be used to change the password of the user running the command.
True or False?

True
False

A

True

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

The groupmod command can be used to change 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
10
Q

The groupmod command can be used to change a group GID.
True or False?

True
False

A

True

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

The groupmod command can be used to add users to a group.
True or False?

True
False

A

False

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

Which of the following commands can be used to modify a group?

groupmod
groupadd
modgroup
addgroup

A

groupmod

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

Which command can be used to determine a user’s most recent log in?

history
last
login
shell

A

last

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

Which of the following files contains encrypted user password information?

/etc/usr
/etc/group
/etc/passwd
/etc/shadow

A

/etc/shadow

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

Which of the following files contains user IDs?

/etc/group
/etc/passwd
/etc/usr
/etc/shadow

A

/etc/passwd

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

Which of the following files does the groupadd command use to determine the new GID when a GID isn’t specified?

/etc/usr
/etc/shadow
/etc/passwd
/etc/group

A

/etc/group

17
Q

Which of the following commands, run as root, will prevent the user bob from logging in?

usermod -L bob
usermod -l bob
usermod -D bob
usermod -d bob

A

usermod -L bob

18
Q

What directory contains a user’s home directory?

/user
/
/home
/rootfs

A

/home

19
Q

GIDs under 500 (or 1000) are usually reserved for what kind of groups?

System use
Are not used for groups, but for user accounts
Administrators
User private groups (UPG)

A

System use

20
Q

If a user is deleted, the files and directories that the user owned…
…are deleted as well.
…will have no user owner.
…may be important for others in the organization
…will have no UID owner.

A

…may be important for others in the organization

21
Q

Which of the following options for the useradd command allows you to use a different primary group then the default?

  • g
  • G
  • U
  • u
A

-g

22
Q

On a system that uses UPG, the UID must not be the same as the GID..
True or False?

True
False

A

False

23
Q

The usermod command can be used to unlock a users account with the following option.

  • s
  • u
  • f
  • U
A

-U

24
Q

Which of the following options for the useradd command allows you to use a different login shell than the default?

  • g
  • s
  • u
  • U
A

-s

25
Q

Which of the following commands will add the group extra to the user jane’s secondary groups in addition to jane‘s current secondary groups?

usermod -a extra jane
usermod -ag jane extra
usermod -aG extra jane
usermod -G extra jane

A

usermod -aG extra jane

26
Q

Which option for the usermod command can be used to specify a user’s primary group ID?

  • g
  • S
  • G
  • s
A

-g

27
Q

For root users, the passwd command can only be used to change the password of the user running the command.
True or False?

True
False

A

False

28
Q

The userdel -r command will…

…will prompt before deleting each file owned by a user.
…delete the user account, but leave the user’s files by default.
…automatically delete a user and the user’s home directory and mail spool and their contents.
…automatically delete a user and all the files owned by that user.

A

…automatically delete a user and the user’s home directory and mail spool and their contents.

29
Q

The groupmod command can be used to change a group name.
True or False?

True
False

A

True

30
Q

The groupmod command cannot be used to change a group GID.
True or False?

True
Fasle

A

False

31
Q

The groupdel command can be used to delete primary groups.
True or False?

True
False

A

False

32
Q

Which of the following commands can be used to modify a user?

adduser
moduser
useradd
usermod

A

usermod

33
Q
Which command can be used to determine a user’s most recent log in?
history
shell
login
last
A

last

34
Q

The /etc/passwd file contains encrypted user password information. True or False?
True or False?

False
True

A

False

35
Q

Which of the following files contains group IDs?

/etc/passwd
/etc/usr
/etc/shadow
/etc/group

A

/etc/group

36
Q

Which command allows you to view or change some of the default values used by the useradd command?

useradd -D
useradd -r
modvalue
useradd -f

A

useradd -D

37
Q

Which of the following commands, run as root, will prevent the user jane from logging in?

usermod -d jane
usermod -D jane
usermod -L jane
usermod -l jane

A

usermod -L jane