13 July 2012

interview questions Linux Topic : Authentication


Q Which password package should you install to ensure that the central password file couldn't be stolen easily?

A) PAM

B) tcp_wrappers

C) shadow

D) ssh

Answer : C - The shadow password package moves the central password file to a more secure location.
Answers a, b, and e all point to valid packages, but none of these places the password file in a more secure location.


Q. When using useradd to create a new user account, which of the following tasks is not done automatically.

a. Assign a UID.

b. Assign a default shell.

c. Create the user's home directory.

d. Define the user's home directory.

Answer : c .The useradd command will use the system default for the user's home directory. The home directory is not created, however, unless you use the -m option.


Q. You attempt to use shadow passwords but are unsuccessful. What characteristic of the  /etc/passwd file may cause this?

Choose one:

a. The login command is missing.

b. The username is too long.

c. The password field is blank.

d. The password field is prefaced by an asterisk.


Answer : c .The password field must not be blank before converting to shadow passwords.When you install a new application, documentation on that application is also usually installed

Main index Linux interview questions
Click here for more questions...

No comments:

Post a Comment