CH16 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

The groupmod command can be used to change a group name?

True
False

A

True

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

The groupmod command can be used to change a group GID?

True
False

A

True

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

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

/etc/user
/etc/shadow
/etc/passwd
/etc/group

A

/etc/group

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

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

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

  • g
  • S
  • G
  • s
A

-g

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

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

The groupdel command can be used to delete primary groups?

True
False

A

False

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

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

adduser
moduser
useradd
usermod

A

usermod

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

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

useradd -D
useradd -r
modvalue
useradd -f

A

useradd -D

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