Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > passwd , passwd-, passwd.OLD

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-22-2009   #1 (permalink)
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
vickey_20 is offline  


Reply With Quote
Old 06-22-2009   #2 (permalink)
Linux User
 
Join Date: Oct 2006
Location: arizona
Posts: 395
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

RHCT for RHEL version 4
echo "$whatever_youre_saying" > /dev/null
meton_magis is offline   Reply With Quote
Old 06-22-2009   #3 (permalink)
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
vickey_20 is offline   Reply With Quote
Old 06-22-2009   #4 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,038
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.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 06-22-2009   #5 (permalink)
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
vickey_20 is offline   Reply With Quote
Old 07-15-2009   #6 (permalink)
Just Joined!
 
Mistoffeles's Avatar
 
Join Date: Jul 2006
Location: Northern BC, Canada
Posts: 50
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.
Mistoffeles is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:35 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2