Question 10
Refer to the Exhibit.
[root@server1 ~ # 1s -1 /usr/bin/passwd
-r-x—x—x 1 root root 21200 oct 7 21:01 /usr/bin/passwd
[root@server1 ~] # 1s -1 /etc/shadow
-r - - - - - - - - 1 root root 1818 Mar 7 10:31 /etc/shadow]
[root@server1 ~]#
A user smith is on your system complained that he is not able to change his password. As the administrator, you long-listed the passwd command and the /etc/shadow file.
View the Exhibit that shows the output.
What must you do to enable this user to change his password?
Set SGID on /usr/bin/passwd.
Set SUID on /usr/bin/passwd.
Set sticky bit on /usr/bin/passwd.
Set read and write permission for others on /etc/shadow.
Set permission on /etc/shadow to 600.
Correct answer: B