Module 14 - Create a new user

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

-G

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

-g and -G

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

-u

The usermod command can be used to do all of the following except...

...change the user's MAX and MIN password settings.

The userdel command will...

...delete the user account, but leave the user's files by default.

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

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

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

/etc/group

Which of the following files contains user IDs?

/etc/passwd

Which of the following files contains encrypted user password information?

/etc/shadow

What directory contains user's home directories?

/home

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?

False

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

False

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

System accounts, such as server processes

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

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

True

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

True

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

True

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

groupmod

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

last

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

usermod -L bob

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 -aG extra bob


Set pelajaran terkait

GLOBAL CITIES, MIGRATION, AND DEMOGRAPHY

View Set

QUIZ #4 EARLY COLD WAR, KOREAN WAR, "NEW LOOK" FOREIGN POLICY

View Set

A&C I Practice Respiratory Assessment #1

View Set