passwd
Elvedin
mnsan11 at earthlink.net
Sun Mar 21 21:40:53 PST 2004
Mark wrote:
>----- Original Message -----
>From: "Elvedin" <mnsan11 at earthlink.net>
>To: <freebsd-questions at freebsd.org>
>Sent: Monday, March 22, 2004 5:06 AM
>Subject: passwd
>
>
>
>>>644 should be the proper permission on /etc/pwd.db. And is
>>>/usr/bin/passwd still setuid root?
>>>
>>>
>>drwxr-xr-x 17 root wheel - 2048 Mar 21 21:57 etc
>>-rwxr--r-- 1 root wheel - 40960 Mar 21 21:57 pwd.db
>>-rwxr-xr-x 2 root wheel - 32824 Oct 27 09:31 passwd
>>
>>I didn't change passwd or anything related to it at all ...
>>
>>
>
>Well, something changed alright. As I expected, your passwd no longer seems
>to be setuid root! Like so:
>
>-r-sr-xr-x 1 root wheel 32504 Oct 9 2002 /usr/bin/passwd
>
>If it is not setuid root, regular users can, obviously, no longer can change
>their own passwords. Change it back:
>
>chmod u+s /usr/bin/passwd
>
>That will do it. It might be of interest, though, to figure out why this
>change occured.
>
>- Mark
>
>
>
>
That resolved it, thank you very much. I really have no clue why this
came up since I haven't changed any permissions at all in /usr/bin or
anything passwd related before this. If only my setuid logs were set to
keep logs from the beginning instead of for today and yesterday...
--
Elvedin T.
sysadmin.ods.org <http://sysadmin.ods.org>
ODS.org <http://www.ods.org>
More information about the freebsd-questions
mailing list