Find the answer to your Linux question:
Results 1 to 3 of 3
I was looking around the files in /etc/ to see what they were and what they said, then I noticed there was two files called passwd, which confused me a ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Location
    uk
    Posts
    20

    [SOLVED] /etc/passwd and /etc/passwd-

    I was looking around the files in /etc/ to see what they were and what they said, then I noticed there was two files called passwd, which confused me a lot for a second then I noticed one of them was actually passwd-.

    I compared them and they only differed by one line:
    < games:36:35:added by portage for gemrb:/usr/games:/bin/bash, which was in passwd but not passwd-.

    Should these files both exist? If yes, why, what does having both do? If no, then its safe to say I can just delete passwd-?

    Thanks muchly for your help.

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Files whose names end in ~ are backups of old versions. Most Linux editors follow this convention. If there is a second edit, this backup file gets overwritten.

    If you change a system configuration yourself, it's a good idea to save the original under a separate name so as to keep it permanently.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    May 2010
    Location
    uk
    Posts
    20
    Ah, that's very useful.
    Thank you hazel.

Posting Permissions

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