LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-24-2011, 02:29 AM   #1
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
How to changes Happened in /etc/shadow file, when user changing password


Hi,

I want to know, how does changes happened in the encrypted password in /etc/shadow file , when user changing password . because user doesnot have access on that file.

Please let me know.
 
Old 01-24-2011, 07:10 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
`passwd` is suid root. Therefore the program has the ability to do it:

Code:
>>> (12:09 PM) (jcook@eli) (0/pts/0) (~)
$ ls -la `which passwd`
-rwsr-xr-x 1 root root 42792 2010-09-03 11:44 /usr/bin/passwd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shadow file password policy. pinga123 Linux - Newbie 11 10-06-2010 03:01 AM
How can i check a string with actual user passwd (ie password in /etc/shadow) iamjayanth Linux - Software 6 09-29-2009 02:34 AM
shadow file has !! for password field Z038 Linux - General 4 09-10-2007 08:40 AM
How to encrypt a password to the /etc/shadow file? Milosevic Linux - Newbie 2 12-13-2005 03:14 PM
Apache and shadow password file fortezza Linux - Security 2 07-31-2005 07:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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