Friday, March 5, 2010

Top Linux Admin Interview Questions asked in TOP IT industries

Hey Guys, AFRAID of interviews

DONT Worry prepare the following questions before Interview. I have managed to prepare some questions sets. Practice this and i'm sure you would crack a L1/L2/L3 Linux Administrator Job Easily. All the questions are taken from the top IT brands interviews.

Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions

Questions BANK 01

# 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 asterick.

# You create a new user account by adding the following line to your /etc/passwd file. bobm:baddog:501:501:Bob Morris:/home/bobm:/bin/bash Bob calls you and tells you that he cannot logon. You verify that he is using the correct username and password. What is the problem? Choose one:
a. The UID and GID cannot be identical.
b. You cannot have spaces in the line unless they are surrounded with double quotes.
c. You cannot directly enter the password; rather you have to use the passwd command to assign a password to the user.
d. The username is too short, it must be at least six characters long.

# Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file? Choose one:
a. Create a link from the user’s home directory to the shell the user will use.

b. Create the user’s home directory
c. Use the passwd command to assign a password to the account.
d. Add the user to the specified group.

# You create a new user by adding the following line to the /etc/passwd file bobm::501:501:Bob Morris:/home/bobm:/bin/bash You then create the user’s home directory and use the passwd command to set his password. However, the user calls you and says that he cannot log on. What is the problem? Choose one:
a. The user did not change his password.
b. bobm does not have permission to /home/bobm.
c. The user did not type his username in all caps.
d. You cannot leave the password field blank when creating a new user.

# When using useradd to create a new user account, which of the following tasks is not done automatically. Choose one:
a. Assign a UID.
b. Assign a default shell.
c. Create the user’s home directory.
d. Define the user’s home directory.

# You issue the following command useradd -m bobm But the user cannot logon. What is the problem? Choose one:
a. You need to assign a password to bobm’s account using the passwd command.
b. You need to create bobm’s home directory and set the appropriate permissions.
c. You need to edit the /etc/passwd file and assign a shell for bobm’s account.
d. The username must be at least five characters long.

# You have created special configuration files that you want copied to each user’s home directories when creating new user accounts. You copy the files to /etc/skel. Which of the following commands will make this happen? Choose one:
a. useradd -m username
b. useradd -mk username
c. useradd -k username
d. useradd -Dk username

# Mary has recently gotten married and wants to change her username from mstone to mknight. Which of the following commands should you run to accomplish this? Choose one:
a. usermod -l mknight mstone
b. usermod -l mstone mknight
c. usermod -u mknight mstone
d. usermod -u mstone mknight

# After bob leaves the company you issue the command userdel bob. Although his entry in the /etc/passwd file has been deleted, his home directory is still there. What command could you have used to make sure that his home directory was also deleted? Choose one:
a. userdel -m bob
b. userdel -u bob
c. userdel -l bob
d. userdel -r bob

# All groups are defined in the /etc/group file. Each entry contains four fields in the following order. Choose one:
a. groupname, password, GID, member list
b. GID, groupname, password, member list
c. groupname, GID, password, member list
d. GID, member list, groupname, password

# You need to create a new group called sales with Bob, Mary and Joe as members. Which of the following would accomplish this? Choose one:
a. Add the following line to the /etc/group file: sales:44:bob,mary,joe
b. Issue the command groupadd sales.
c. Issue the command groupadd -a sales bob,mary,joe
d. Add the following line to the /etc/group file: sales::44:bob,mary,joe
Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions

4 comments:

  1. where are ans's for those question's.???

    ReplyDelete
  2. I came across your website, i think your blog is interesting, keep working !

    ReplyDelete
  3. Where do we find answers for these questions?

    ReplyDelete
  4. Where are the answers to these questions? Would you please?

    ReplyDelete