Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Location
    Bangalore
    Posts
    2

    Smile 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.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,091
    hi and welcome.

    You are right, only root can update the shadow file.

    The "passwd" command works by utilizing the s-bit.
    Look here:
    Code:
    ls -la `which passwd`
    -rwsr-xr-x 1 root root 27768 Jan  6  2007 /usr/bin/passwd
    The s-bit says: Use the *fileowner* uid for this process, not the uid of the calling user.

    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.

  3. #3
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    951
    Quote Originally Posted by Irithori View Post
    However, the passwd command is well known and secure.
    I would have thought so. So I was rather puzzled when I found an upgrade to passwd in my last Debian Lenny update. It's hard to see why such a fundamental program should ever need to be upgraded.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  4. #4
    Linux Guru Rubberman's Avatar
    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!

  5. #5
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    951
    Quote Originally Posted by Rubberman View Post
    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.
    I couldn't find it on the site. Could you give me a link?
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  6. #6
    Linux Guru Rubberman's Avatar
    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
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •