Deck 7: Managing Users and Groups

Full screen (f)
exit full mode
Question
Everyone has permission to view the /etc/passwd file's contents.
Use Space or
up arrow
down arrow
to flip the card.
Question
Regular users typically have a UID less than 100.
Question
The first thing you must do after creating a user is set the password.
Question
The newgrp command opens a new shell even if the command fails.
Question
By default, new users are forced to change their passwords.
Question
Which file contains user account information?

A) /etc/shadow
B) / etc/default/ useradd
C) /etc/passwd
D) /etc/login.defs
Question
Each field in the /etc/passwd file is separated by ____.

A) periods
B) colons
C) semicolons
D) spaces
Question
OpenSUSE recommends using ____ for the username.

A) all uppercase letters
B) all lowercase letters
C) a combination of two symbols, uppercase and lowercase letters
D) a combination of uppercase and lowercase letters
Question
The root UID is ____.

A) zero
B) one
C) 100
D) 1000
Question
Which file is a configuration file containing passwords and password expiration information for all user accounts?

A) /etc/shadow
B) / etc/default/ useradd
C) /etc/passwd
D) /etc/login.defs
Question
What value in the /etc/shadow file's password expiration field means the user's password never expires?

A) 0
B) 1
C) 999
D) 99999
Question
Which command allows you to find out which group has a GID of 100?

A) more /etc/group | grep 100
B) less /etc/group | grep 100
C) id gid=100(users)
D) id uid=100(users)
Question
The /etc/login.defs file is a(n) ____ file.

A) binary
B) text
C) encrypted
D) hidden
Question
Users can change their own passwords by typing passwd with ____ to specify the username.

A) a less than symbol
B) two spaces
C) no argument
D) their UID
Question
In openSUSE, the default skeleton directory is ____.

A) /bin/etc/skel
B) /etc/skel
C) /bin/skel
D) /etc/login/skel
Question
Which command is used to create user accounts and update default information for new users?

A) userdel
B) newgrp
C) chage
D) useradd
Question
Which command is used to list and modify password expiration information for user accounts?

A) userupd
B) change
C) chage
D) useradd
Question
What is the effect of changing the date the password was last changed to zero?

A) It disables the account.
B) It forces the user to change the password at the next login.
C) It sets the password to never expire.
D) It sets the password to expire in 24 hours.
Question
If the chage command is used without options, it is in ____ mode.

A) default
B) terminal
C) interactive
D) inactive
Question
When using the chage command, how do you set the minimum password age?

A) Type [7] and press Enter.
B) Type 7 and press Enter.
C) Type 3 and press Enter.
D) Type 90 and press Enter.
Question
When using the chage command, how do you set the maximum password age?

A) Type [7] and press Enter.
B) Type 7 and press Enter.
C) Type 3 and press Enter.
D) Type 90 and press Enter.
Question
In Linux, the group database configuration file is ____.

A) /etc/group
B) /bin/group
C) /etc/bin/group
D) /bin/etc/group
Question
What is the OpenSUSE GUI utility for adding, editing, and removing users and groups?

A) GNOME
B) VIM
C) YaST
D) Blowfish
Question
What is Blowfish?

A) A password encryption scheme
B) A password compression utility
C) A password checker
D) A GUI utility to define users
Question
When creating a new user using the GUI utility, the default expiration date is in the form of ____.

A) MMDDYYYY
B) DD-MM-YYYY
C) DDMM-YYYY
D) YYYY-MM-DD
Question
____________________ is the process of verifying someone's identity by checking his or her username and password against a central user database.
Question
The ____________________ is a unique number representing the username.
Question
The ____________________ is a unique number that corresponds to each group.
Question
The ____________________ directory contains files copied automatically to each new user's home directory.
Question
The ____________________ group is " users," which has the GID 100.
Question
Match each statement with an item

-Command option used to remove a specified member from the group account.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to specify the user's default login shell.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to allow assignment of a duplicate GID.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to change the user's login name.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to force the GID to what's entered at the command line.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to unlock specific user accounts.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to add a home directory for a new user.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to display all password expiration information for the specified user account.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
Match each statement with an item

-Command option used to change the number of days the password is valid for the specified user account.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Question
What is contained in the /etc/passwd file's username field?
Question
Where is user information stored?
Question
How can you view the contents of your /etc/login.defs file or / etc/default/ useradd file?
Question
What happens to a user's files when the user is deleted?
Question
How are groups helpful?
Question
Describe the YaST User and Group Management utility.
Question
Describe how the YaST User and Group Management utility Details tab is used.
Question
Describe how the YaST User and Group Management utility Plugins tab is used.
Question
Describe how the YaST User and Group Management utility Defaults for New Users tab is used.
Question
Describe how the YaST User and Group Management utility Authentication Settings tab is used.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/49
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 7: Managing Users and Groups
1
Everyone has permission to view the /etc/passwd file's contents.
True
2
Regular users typically have a UID less than 100.
False
3
The first thing you must do after creating a user is set the password.
True
4
The newgrp command opens a new shell even if the command fails.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
5
By default, new users are forced to change their passwords.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
6
Which file contains user account information?

A) /etc/shadow
B) / etc/default/ useradd
C) /etc/passwd
D) /etc/login.defs
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
7
Each field in the /etc/passwd file is separated by ____.

A) periods
B) colons
C) semicolons
D) spaces
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
8
OpenSUSE recommends using ____ for the username.

A) all uppercase letters
B) all lowercase letters
C) a combination of two symbols, uppercase and lowercase letters
D) a combination of uppercase and lowercase letters
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
9
The root UID is ____.

A) zero
B) one
C) 100
D) 1000
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
10
Which file is a configuration file containing passwords and password expiration information for all user accounts?

A) /etc/shadow
B) / etc/default/ useradd
C) /etc/passwd
D) /etc/login.defs
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
11
What value in the /etc/shadow file's password expiration field means the user's password never expires?

A) 0
B) 1
C) 999
D) 99999
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
12
Which command allows you to find out which group has a GID of 100?

A) more /etc/group | grep 100
B) less /etc/group | grep 100
C) id gid=100(users)
D) id uid=100(users)
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
13
The /etc/login.defs file is a(n) ____ file.

A) binary
B) text
C) encrypted
D) hidden
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
14
Users can change their own passwords by typing passwd with ____ to specify the username.

A) a less than symbol
B) two spaces
C) no argument
D) their UID
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
15
In openSUSE, the default skeleton directory is ____.

A) /bin/etc/skel
B) /etc/skel
C) /bin/skel
D) /etc/login/skel
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
16
Which command is used to create user accounts and update default information for new users?

A) userdel
B) newgrp
C) chage
D) useradd
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
17
Which command is used to list and modify password expiration information for user accounts?

A) userupd
B) change
C) chage
D) useradd
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
18
What is the effect of changing the date the password was last changed to zero?

A) It disables the account.
B) It forces the user to change the password at the next login.
C) It sets the password to never expire.
D) It sets the password to expire in 24 hours.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
19
If the chage command is used without options, it is in ____ mode.

A) default
B) terminal
C) interactive
D) inactive
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
20
When using the chage command, how do you set the minimum password age?

A) Type [7] and press Enter.
B) Type 7 and press Enter.
C) Type 3 and press Enter.
D) Type 90 and press Enter.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
21
When using the chage command, how do you set the maximum password age?

A) Type [7] and press Enter.
B) Type 7 and press Enter.
C) Type 3 and press Enter.
D) Type 90 and press Enter.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
22
In Linux, the group database configuration file is ____.

A) /etc/group
B) /bin/group
C) /etc/bin/group
D) /bin/etc/group
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
23
What is the OpenSUSE GUI utility for adding, editing, and removing users and groups?

A) GNOME
B) VIM
C) YaST
D) Blowfish
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
24
What is Blowfish?

A) A password encryption scheme
B) A password compression utility
C) A password checker
D) A GUI utility to define users
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
25
When creating a new user using the GUI utility, the default expiration date is in the form of ____.

A) MMDDYYYY
B) DD-MM-YYYY
C) DDMM-YYYY
D) YYYY-MM-DD
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
26
____________________ is the process of verifying someone's identity by checking his or her username and password against a central user database.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
27
The ____________________ is a unique number representing the username.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
28
The ____________________ is a unique number that corresponds to each group.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
29
The ____________________ directory contains files copied automatically to each new user's home directory.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
30
The ____________________ group is " users," which has the GID 100.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
31
Match each statement with an item

-Command option used to remove a specified member from the group account.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
32
Match each statement with an item

-Command option used to specify the user's default login shell.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
33
Match each statement with an item

-Command option used to allow assignment of a duplicate GID.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
34
Match each statement with an item

-Command option used to change the user's login name.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
35
Match each statement with an item

-Command option used to force the GID to what's entered at the command line.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
36
Match each statement with an item

-Command option used to unlock specific user accounts.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
37
Match each statement with an item

-Command option used to add a home directory for a new user.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
38
Match each statement with an item

-Command option used to display all password expiration information for the specified user account.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
39
Match each statement with an item

-Command option used to change the number of days the password is valid for the specified user account.

A) useradd -m
B) usermod -l name
C) chage -m
D) chage -l
E) groupadd -o
F) groupadd -g
G) useradd -s
H) usermod -U
I) groupmod -R
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
40
What is contained in the /etc/passwd file's username field?
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
41
Where is user information stored?
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
42
How can you view the contents of your /etc/login.defs file or / etc/default/ useradd file?
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
43
What happens to a user's files when the user is deleted?
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
44
How are groups helpful?
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
45
Describe the YaST User and Group Management utility.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
46
Describe how the YaST User and Group Management utility Details tab is used.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
47
Describe how the YaST User and Group Management utility Plugins tab is used.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
48
Describe how the YaST User and Group Management utility Defaults for New Users tab is used.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
49
Describe how the YaST User and Group Management utility Authentication Settings tab is used.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 49 flashcards in this deck.