LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2002, 01:20 AM   #1
juno
Member
 
Registered: Sep 2002
Location: fdas
Posts: 100

Rep: Reputation: 15
password file


What file store the user password in linux? Thx.
 
Old 10-02-2002, 01:24 AM   #2
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Well I think it's stored in /etc/shadow. But as you already know they're encrypted so I don't think you'll get much info from them. Good luck!
 
Old 10-02-2002, 01:05 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well on RH 8.0 there is NO more /etc/shadow ... the passwords are stored also in /etc/passwd ... that sucks IMHO
 
Old 10-02-2002, 09:11 PM   #4
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
Quote:
Originally posted by markus1982
Well on RH 8.0 there is NO more /etc/shadow ... the passwords are stored also in /etc/passwd ... that sucks IMHO :tisk:
prolly cause you didn't enable shadow passwds. if RH stores all encrypted passwds in /etc/passwd then it's a HUGE step back in security, and just really lame on redhat's part.
 
Old 10-03-2002, 06:54 AM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
No, I have enabled it ... I've chekced that already ...
 
Old 10-03-2002, 10:47 AM   #6
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
wow... huge security hole. RH should know better than that. what are the perms on /etc/passwd?
 
Old 10-03-2002, 11:44 AM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Code:
[root@localhost root]# ls -l /etc/passwd
-rw-r--r--    1 root     root         1389 Oct  2 23:27 /etc/passwd
 
Old 10-03-2002, 11:47 AM   #8
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
wow... how irresponsible of redhat. that's world readable....
 
Old 10-03-2002, 12:14 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
/etc/passwd has always been world-readable. Whether you store your encrypted password in it or not.
 
Old 10-03-2002, 05:51 PM   #10
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
authconfig

Description of the package authconfig (from http://www.redhat.com/software/linux.../packages.html):

Text-mode tool for setting up NIS and shadow passwords.


So but what happens if you create a kickstart file and choose (in the packages-section):
-authconfig

Then you get a system WITHOUT shadow-pwd ... although in the kickstart-file you can specify authconfig --useshadow or auth --useshadow before ... but it's just useless those settings if not installing authconfig ... as far as I can remember I don't think I had a similar prob with 7.3

Last edited by markus1982; 10-03-2002 at 05:54 PM.
 
Old 10-03-2002, 05:52 PM   #11
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
Originally posted by nxny
/etc/passwd has always been world-readable. Whether you store your encrypted password in it or not.
The RH system needs a lot of security tighting actions after the base install to secure the system. I wrote a kickstart system_configure script for that purpose in perl which is about 1000 lines currently!
 
Old 10-03-2002, 06:23 PM   #12
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Definitely! The password should be stored in /etc/shadow for security. But /etc/passwd has been world readable due to historic reasons -- back from the UNIX days -- when people didnt need to be as security conscious as we are today.
Would you share your script with us then, Markus?
 
Old 10-03-2002, 11:56 PM   #13
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
At a later time after adding a few comments to it
 
Old 10-04-2002, 09:27 AM   #14
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
red hat 8.0 does have shadowed passwords. It is enabled by default in the install. You would have to purposely uncheck it to take off shadowed passwords. There will always be a /etc/passwd file if you have shadowed passwords or not. if there is a /etc/shadow then you have shadowed passwords.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsynch with the --password-file???? jedimastermopar Linux - General 5 05-07-2005 01:25 PM
password file roAder Slackware 2 02-28-2005 06:08 PM
how to protect a file with password bobgodwinx Linux - Security 7 07-20-2004 08:47 AM
Password file radskatehell Linux - General 5 01-21-2003 05:17 PM
Password on zip file FNC Linux - Security 4 04-19-2002 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:37 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