How come /etc/passwd get updated?

Archives
Venkat

How come /etc/passwd get updated?

Postby Venkat » Wed Aug 24, 2005 4:58 am

Hi Friend’s,

I am Venkat, we all know that the permission for /etc/passwd file is r-- r-- r--. How come it will get updated in that, when we use the passwd command when we try to change the password for a user?

Have a Nice Day
venkat

Hermelito Go

Re: How come /etc/passwd get updated?

Postby Hermelito Go » Thu Aug 25, 2005 12:30 am

The passwd command is a setuid program.
Meaning, it executes with the effective rights of root.

#ls -l /usr/bin/passwd
-r-sr-sr-x 1 root sys 23500 Apr 28 2004 /usr/bin/passwd

The "s" in the permission bit means that the program is a setuid.


Return to “Archives”

Who is online

Users browsing this forum: No registered users and 1 guest