LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   The passwd command is usually set suid root. this is because, (https://www.linuxquestions.org/questions/linux-software-2/the-passwd-command-is-usually-set-suid-root-this-is-because-337959/)

Simon Adebisi 06-28-2005 06:21 AM

The passwd command is usually set suid root. this is because,
 
this is a Linux certification practice test question.

here are my choices.

A. non root users wouldn't be able to change there group membership

B. non root users wouldn't be able to change there group password

C. non root users wouldn't be able to change there password

D. non root users wouldn't be able to change there uid

whats the real answer.

gomerb 06-28-2005 08:10 AM

Ignoring the suspect grammar the answer is C. The set suid allows any user to run the passwd command which will edit files owned by root. In this case the file containing the encrypted passwords - the /etc/shadow file I think.


All times are GMT -5. The time now is 04:18 PM.