This is a discussion on passwd reset within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, Can anybody tell me...The passwd file is not writeable by world users and groups. How does a user then ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
|||
|
Code:
$ ls -l /usr/bin/passwd -rwsr-xr-x 1 root root 28480 2007-02-27 13:23 /usr/bin/passwd [1] `man chmod` [2] setuid - Wikipedia, the free encyclopedia Last edited by agn; 02-13-2008 at 09:23 AM.. |
|
|||
|
Hi,
From which os and version did u got this? Bcause I check and found this result. -rw-r--r-- 1 root root 1564 Feb 12 15:49 /etc/passwd -rw-r----- 1 root shadow 1123 Feb 12 15:49 /etc/shadow And almost all os of linux shows same here. |
|
|||
|
/usr/bin/passwd is the command. The files you're referring to are password databases. Its the passwd(1) command that writes into /etc/passwd, which has the required permissions to do so because of setuid.
Code:
$ ls -l /usr/bin/passwd -rwsr-xr-x 1 root root 28480 2007-02-27 13:23 /usr/bin/passwd $ file $_ /usr/bin/passwd: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, stripped $ ls -l /etc/passwd -rw-r--r-- 1 root root 2324 2008-02-06 10:52 /etc/passwd $ file $_ /etc/passwd: ASCII text |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passwd | bubloob_13 | Getting started tutorials | 2 | 03-24-2008 11:04 PM |
| Redhat Users vsftpd FTP Passwd Reset Problem | bubloob_13 | CentOS / RHEL / Fedora | 1 | 11-05-2007 09:03 PM |
| how to reset root and user passwords - new install | forlornhope | Linux software | 2 | 07-05-2007 01:51 AM |
| can not find the username in /etc/passwd file | subrata1in | Getting started tutorials | 5 | 03-27-2007 12:45 PM |
| passwd command on debian | ac007 | Linux software | 1 | 12-28-2005 01:15 AM |