Find the answer to your Linux question:
Results 1 to 6 of 6
I see three passwd files in /etc/ . Normally only one is supposed to be there called passwd but what the other two for , they look similar ....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    passwd , passwd-, passwd.OLD


    I see three passwd files in /etc/ . Normally only one is supposed to be there called passwd but what the other two for , they look similar .
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    699
    it would help if we knew what the other 2 were called.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    sorry i forget to mention there names althoug it there in the headint if you see. They are shadow- and shadow.OLD
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    Anytime you see a file with the .old suffix, it means it's not in use anymore but is there to fallback on should there be a problem. Is it definitely a hyphen after passwd/shadow? If it's a tilde (shadow~) that means the file has been edited by hand.

    If you have not edited these files yourself and your system isn't an upgrade from an earlier release I'd recommend using a rootkit scanner to ensure you haven't been compromised.

  5. #5
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    i found a link between the two files passwd and passwd- . When one uses the command
    Code:
    pwconv and pwunconv
    The contents of the files are interchanged with each other and may be the last file .OLD is simply a backup , don't know for what purpose???
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  6. #6
    Just Joined! Mistoffeles's Avatar
    Join Date
    Jul 2006
    Location
    Northern BC, Canada
    Posts
    54
    They are both backups.

    The one with the tilde is created automatically when you make a manual change with an editor, such as emacs. The .OLD file was probably made when you installed or configured something that modified the original file.

Posting Permissions

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