NDG LINUX CHAPTER 13 - CHAPTER 14
CHAPTER 13
CORRECT - See section 13.3
Which files contain user account information?
CORRECT - See section 13.3.2
Which user can view the /etc/shadow file?
- The root user
CORRECT - See section 13.3.4
Which command will display the UID, GID and groups your current user belongs to?
- id
CORRECT - See section 13.1
Each user belongs to at least one group.
- True
CORRECT - See section 13.6
Which of the following commands will allow you to switch to the user, branch?
- su branch
- su -l branch
- su - branch
CORRECT - See section 13.7.1
The
visudo
command uses which text editor by default?- vi
CORRECT - See section 13.4.1
The /etc/group file follows what structure?
- group_name:password_placeholder:GID:user_list
CORRECT - See section 13.7.1
In distributions that do not allow the root user to login directly or via the
su
command, the installation process automatically configures one user account to be able to use the sudo
command to execute commands as if they were executed by the root user.- True
CORRECT - See section 13.9
Which of the following commands will display how long the system has been running since the last boot?
- w
- uptime
CORRECT - See section 13.3.3
Which command can be used to view the /etc/passwd file entries?
- getent
CORRECT - See section 14.8.1
CHAPTER 14
On a system that does not use UPG, the
useradd
command will also create a user group. For example, user bob, group bob.- False
CHAPTER 14
CORRECT - See section 14.12.1
CORRECT - See section 14.4
WRONG - See section 14.4
CORRECT - See section 14.4
CORRECT - See section 13.3.4
CORRECT - See section 14.7
WRONG - See section 14.8.2
WRONG - See section 14.3
CORRECT - See section 19.4
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
CORRECT - See section 14.4
The
groupmod
command can be used to change a group name.- True
WRONG - See section 14.4
The
groupmod
command can be used to change a group GID.- False
CORRECT - See section 14.4
The
groupmod
command can be used to add users to a group.- False
CORRECT - See section 13.3.4
Which of the following commands can be used to modify a group?
- groupmod
CORRECT - See section 14.7
Which of the following files contains encrypted user password information?
- /etc/shadow
WRONG - See section 14.8.2
Which of the following files contains user IDs?
- /etc/shadow
WRONG - See section 14.3
Which of the following files does the
groupadd
command use to determine the new GID when a GID isn't specified?- /etc/shadow
CORRECT - See section 19.4
What directory contains user's home directories?
- /home
versi 2
UIDs 1-500 are usually reserved for what kind of users?
- System accounts, such as server processes
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 options for the
useradd
command allows root to specify the UID to be associated with the account?- -u
On a system that does not use UPG, the
useradd
command will also create a user group. For example, user bob, group bob.- False
The
usermod
command can be used to do all of the following except...- ...change the user's MAX and MIN password settings.
For non-root users, the
passwd
command can only be used to change the password of the user running the command.- True
The
groupmod
command can be used to change a group name.- True
Which of the following files does the
groupadd
command use to determine the new GID when a GID isn't specified?- /etc/shadow
Which of the following commands, run as root, will prevent the user bob from logging in?
- usermod -L bob
What directory contains user's home directories?
- /home
0 komentar