LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-15-2006, 06:58 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
what is /etc/passwd- for?


Hi!
IŽ ve just seen that on my systems there is a file called "/etc/passwd-". What is it for?
 
Old 11-15-2006, 07:12 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Originally unix used the /etc/passwd file to store password in plain text. But to make this more secure the shadow passwd file was created. This program would encrypt the password using the md5 encryption algorithym and add an X in place of where the plain text password would normally be.

The X would tell it to look in a file named /etc/shadow and decrypted the stored password. this means no one can read the password even if they can read the /etc/shadow file.

If you remove the X from the user name in the /etc/passwd it will not check the /etc/shadow to see if the password matches, it will let the user login without using a password.

Last edited by fotoguy; 11-15-2006 at 07:16 AM.
 
Old 11-16-2006, 11:08 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
passwd- is a backup file of passwd
/var/backup/passwd.back is another backup
 
Old 11-16-2006, 07:39 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by nx5000
passwd- is a backup file of passwd
/var/backup/passwd.back is another backup

Ooops, sorry didn't see the "-" after file name, nx5000 is correct it's a backup file. Disregard what I said.
 
Old 11-17-2006, 12:04 AM   #5
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 770

Rep: Reputation: 242Reputation: 242Reputation: 242
It was a good explaination, though.
 
Old 11-19-2006, 10:02 PM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by jayjwa
It was a good explaination, though.
Thanks for that.
 
Old 11-22-2006, 07:58 AM   #7
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Thanks for the explanationS ;-)! I was first afraid that this could be the sign of my passwd file having been hacked.
 
Old 11-22-2006, 04:47 PM   #8
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by xpucto
Thanks for the explanationS ;-)! I was first afraid that this could be the sign of my passwd file having been hacked.
Well it's good to hear that you check your system and ask question if there is something there you don't understand. You will find the same thing will happen to the /etc/shadow, /etc/gshadow, /etc/group and some other files that the system makes changes too.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/passwd XaViaR Linux - General 1 06-13-2005 10:12 AM
about passwd jnzhang Linux - General 7 07-08-2003 04:32 PM
/etc/passwd help debdas Linux - General 3 05-09-2003 01:28 PM
can't passwd leihsun Linux - General 17 06-19-2002 05:37 AM
passwd Winter Linux - Security 2 05-01-2002 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration