John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He wants to change the startup shell of Maria from bash to tcsh. Which of the following commands will John use to accomplish the task?
Each correct answer represents a complete solution. Choose all that apply.
The usermod -s and useradd -s commands can be used to change the user startup shell.
Answer option C is incorrect. The usermod -u command is used to set a numerical value of the account's ID. The value must be unique, non-
negative, and greater than 99. The values 0 to 99 are reserved for system accounts.
Answer option B is incorrect. The chage command is used for changing user password expiry information.
Syntax:
chage [-m mindays] [-M maxdays] [-d lastday] [-E expireday] [-I inactive] [-W warndays] [-l] user
The functions of the switches are as follows:
Currently there are no comments in this discussion, be the first to comment!