Results 1 to 6 of 6
Dear guys,
i am gunalan. i would like to tell that i am so happy that i am also joined this Linux forum. i am very much happy that i ...
- 02-21-2010 #1Just Joined!
- Join Date
- Feb 2010
- Location
- Bangalore
- Posts
- 2
how password will updated in /etc/shadow ?
Dear guys,
i am gunalan. i would like to tell that i am so happy that i am also joined this Linux forum. i am very much happy that i am also part of this top most website in this world. This is my first post in our form.
**** by default the permission of /etc/shadow file in linux OS is -r-------- . How the password information will update in this file when an unprivileged user change his password.
Your suggestion are really helpful for me and all.
Thanking You.
- 02-21-2010 #2
hi and welcome.
You are right, only root can update the shadow file.
The "passwd" command works by utilizing the s-bit.
Look here:
The s-bit says: Use the *fileowner* uid for this process, not the uid of the calling user.Code:ls -la `which passwd` -rwsr-xr-x 1 root root 27768 Jan 6 2007 /usr/bin/passwd
Yes, this is dangerous, as a careless coded programm with the s-bit set for the owner root could be used to compromise the system.
ie: Any user could become root.
Therefore s-bit files shall be very rare and carefully checked for errors.
However, the passwd command is well known and secure.You must always face the curtain with a bow.
- 02-22-2010 #3
- 02-22-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,955
If you want to know why passwd was updated before you accept it, go to the Debian web site and look in the release notes.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 02-23-2010 #5
- 02-23-2010 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,955
This was just recently fixed, Debian bug #569622: #569622 - passwd needs to have login as dependency, groupadd fails otherwise - Debian Bug report logs
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote

