Linux Essentials - Chapter 14

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following commands can be used to modify a group? a• groupadd b• modgroup c• addgroup d• groupmod

d

Which of the following commands, run as root, will prevent the user bob from logging in? a• usermod -d bob b• usermod -l bob c• usermod -D bob d• usermod -L bob

d

Which of the following files contains user IDs? a• /etc/group b• /etc/shadow c• /etc/usr d• /etc/passwd

d

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

false

True/False | The groupmod command can be used to add users to a group.

false

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

true

True/False | The groupmod command can be used to change a group GID.

true

True/False | The groupmod command can be used to change a group name.

true

True/False | The useradd command will create a home directory by default for a user. True or False?

true

If a user is deleted, the files and directories that the user owned... a• ...will show a UID as the owner, but not user name. b• ...will have no UID owner. c• ...are deleted as well. d• ...will have no user owner.

a

The userdel command will... a• ...delete the user account, but leave the user's files by default. b• ...will prompt before deleting each file owned by a user. c• ...automatically delete a user and the user's home directory and its contents. d• ...automatically delete a user and all the files owned by that user.

a

UIDs 1-500 are usually reserved for what kind of users? a• System accounts, such as server processes b• Are not used for user accounts, but for group accounts c• Log-in (human) users d• Remote log-in accounts

a

Which command can be used to determine a user's most recent log in? a• last b• history c• shell d• login

a

Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of? a• -G b• -u c• U d• -g

a

Which option for the usermod command can be used to specify a user's group ID (either primary or secondary)? (choose two) a• -g b• -G c• -s d• -S

a, b

The usermod command can be used to do all of the following except... a• ...add a user to a supplementary group. b• ...change the user's MAX and MIN password settings. c• ...change the user's home directory. d• ...change the user's UID and GID.

b

What directory contains user's home directories? a• / b• /home c• /rootfs d• /user

b

Which of the following files contains encrypted user password information? a• /etc/usr b• /etc/shadow c• /etc/passwd d• /etc/group

b

Which of the following files does the groupadd command use to determine the new GID when a GID isn't specified? a• /etc/shadow b• /etc/group c• /etc/passwd d• /etc/usr

b

Which of the following options for the useradd command allows root to specify the UID to be associated with the account? a• -U b• -u c• -G d• -g

b

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? a• usermod -G extra bob b• usermod -a extra bob c• usermod -aG extra bob d• usermod -ag bob extra

c


Kaugnay na mga set ng pag-aaral

3/18 Personal Pronouns 人称代词(我,你,他/她/它)

View Set

Finance 363 exam 1 practice test

View Set

Chapter 3 - Motivation and Pay for Performance

View Set

Real Estate National Practice Exam

View Set

Ch 20 - Currency Exchange Rates and Markets

View Set

Pearson My Programing Lab Python lab 7

View Set