nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

shadow password

This is a discussion on shadow password within the Linux software forums, part of the Linux Getting Started category; i have a question on shadow password file, on shadow passwd file only root have access, so my question is ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-24-2007, 02:52 PM
Member
User
 
Join Date: Jul 2006
Posts: 78
Rep Power: 0
kasimani
Send a message via Yahoo to kasimani
Default shadow password

i have a question on shadow password file, on shadow passwd file only root have access,
so my question is how a normal user change his password and gets updated in shadow passwd.

Thanks In Advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-24-2007, 05:22 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

passwd command has SUID (Saved User ID) enabled. When passwd command executed the effective user id (EUID) that is in force at the time is copied to the saved user id (i.e. root). Using this technique a normal user can update his/her password.

Code:
ls -l $(which passwd)
ls -l $(which ls)
__________________
May the force with you!
Reply With Quote
Reply

Bookmarks


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 On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to decrypt password from /etc/shadow file sonaikar Linux software 1 08-25-2007 12:19 AM
HP UX user lock password, change password, password aging rockdalinux HP-UX 0 12-20-2006 03:36 PM
/etc/shadow file.... avcert1998 Solaris/OpenSolaris 2 09-09-2005 06:05 PM


All times are GMT +5.5. The time now is 11:50 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36