Home / Programming MCQs / Linux MCQs / Question
J
Q. The output of ls -l for /etc/passwd and /usr/bin/passwd is as follows? If a user not belonging to the “root” group and executes the passwd command to try to change his password, which of the following is true?
$ ls -l /etc/passwd -rw-rw-r-- 1 root root 1107 Juin 01 01:55 /etc/passwd $ ls -l /usr/bin/passwd -r-s—x—x 1 root root 23395 May 12 01:24 /usr/bin/passwd
A user normally needs to know his current password to change it to a different one. The “passwd” program checks this. However, root can change any user’s password without knowing the old one; therefore, a user with sudo privileges can change his own password without entering it at the passwd prompt by running sudo passwd $USER. If sudo is configured to require the user’s password, the user must type the password into sudo.
You must be Logged in to update hint/solution
Which of the following commands is used to update access and modification times of a file?
Which of the following command is used to add a new user to the system?
-rwxr–r– permissions represented by the following octal value _____
Which command is used to display content of file in reverse?
The device files are located in which directory?
Which command(s) is/are used to enable shadow passwords?
Which of the following identifiers associated with a process that determines its privilege level?
What is not a correct format for entering commands at the command line?
Discusssion
Login to discuss.