LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-09-2011, 05:37 AM   #1
niaz_ph
LQ Newbie
 
Registered: Nov 2009
Posts: 27

Rep: Reputation: 0
How /etc/shadow file authenticates an user ?


Hi,

i am new to debian. I need to know after booting sequence login shell appears to get username and password. so what happens when user puts username and password ?? how this given username and password are matched with /etc/shadow file ??

my another question is what is role of /etc/pam.d/ authenticating username and password ?? does it work with shadow file or not ?

thanx,
adn@n
 
Old 02-09-2011, 05:47 AM   #2
appilu
Member
 
Registered: Jan 2011
Distribution: RedHat,Debian-Ubuntu,Fedora
Posts: 73

Rep: Reputation: 8
Those files works for password encryption.Each fields in shadow file is separated with colon.
shadow file have entries related to password file
normally MD5-based algorithm is used.
 
Old 02-09-2011, 10:47 PM   #3
niaz_ph
LQ Newbie
 
Registered: Nov 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by appilu View Post
Those files works for password encryption.Each fields in shadow file is separated with colon.
shadow file have entries related to password file
normally MD5-based algorithm is used.

Thanx for the reply....i like to know who encripts the password in /etc/shadow file ?? PAM or other module..??
 
Old 02-09-2011, 11:16 PM   #4
appilu
Member
 
Registered: Jan 2011
Distribution: RedHat,Debian-Ubuntu,Fedora
Posts: 73

Rep: Reputation: 8
hi,
may be the passwd application you are using to set the password uses this encryption.
 
  


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
How to changes Happened in /etc/shadow file, when user changing password deepak_message Linux - Server 1 01-24-2011 06:10 AM
Removing user entries from the shadow file kaplan71 Linux - Security 1 01-17-2008 07:03 AM
authentication user by /etc/shadow Thomas23 Linux - Security 2 05-22-2004 10:52 AM
HELP!! Problem editing the shadow file in Single user mode natso Linux - Security 2 05-28-2002 03:22 AM
/etc/shadow in user authentication katana Linux - General 3 06-24-2001 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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