Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Linux – Quiz 6

Question 1

  1. Groups membership is configured in a file. Which file?
/etc/group
/etc/grp
/etc/members
/etc/mmbrs

1 points

Question 2

  1. Which of the following is a likely entry for the user root in the /etc/passwd file.
root:x:0:0:root:/root:/bin/bash
root:x:499:499:root:/root:/bin/bash
root:x:500:500:root:/root:/bin/bash
root:x:000:000:root:/root:/bin/bash

1 points

Question 3

  1. What is sudo?
A program that can be used to run programs as root.
The user name of a person allowed to run programs as root.
A group name for those allowed to run programs as root.
A configuration file for those allowed to run programs as root.

1 points

Question 4

  1. What is a UID?
A unique number associated with a user account.
a Universally Unique Identifier.
An Un-Interruptible Device.
A file

1 points

Question 5

  1. What is the  command to lock a user’s account so they can no longer use it.
passwd –l username
passwd –lock username
shadow -l username
shadow -lock username

1 points

Question 6

  1. What does the Usermod program do?
  It allows you to edit user accounts
It changes the mode of a user
It changes the permissions of a user
There is no such program.

1 points

Question 7

  1. What is the best command to use to edit the /etc/passwd file?
vipw
vi /etc/passwd
nanopw
nano /etc/passwd

1 points

Question 8

  1. What is the commnand to add a user?
You can use either the adduser or the useradd command to add a user.
Only the useradd command will add a user.
Only the adduser command will add a user.
Niether of the adduser or useradd commands can be used to add a user.

1 points

Question 9

  1. What is the purpose of /etc/skel?
It is a template for new account directories.
This is the configuration file for the skel command.
This is where CentOS stores its skeletons.
There is no /etc/skel

1 points

Question 10

  1. What is the difference between the files /etc/passwd and /etc/shadow?
Encrypted passwords are stored in /etc/shadow
Encrypted passwords are stored in /etc/passwd
Encrypted passwords are stored in both  /etc/shadow and /etc/passwd
Encrypted passwords are stored in /etc/passwd and plain text passwords are stored in /etc/shadow

1 points

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!