Interview Questions

Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file?

Operating System Interview Questions and Answers


(Continued from previous question...)

Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file?

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.


Answer: a
There is no need to link the user's home directory to the shell command. Rather, the specified shell must be present on your system.

(Continued on next question...)

Other Interview Questions