passwd

Peut Kotze PK at nanoteq.com
Fri Jun 6 06:23:58 PDT 2003


Here is a list of libraries and files accessed by passwd from ktrace:

Exec:
/sbin/passwd
/bin/passwd
/usr/sbin/passwd

Libraries:
/usr/libexec/ld-elf.so.1
/usr/lib/libcrypt.so.2
/usr/lib/librpcsvc.so.2
/usr/lib/libutil.so.3
/usr/lib/libc.so.4

Files:
/etc/malloc.conf
/etc/spwd.db
/etc/login.conf
/etc/login.conf.db
/etc/auth.conf
/etc/master.passwd
/etc/localtime

Devices:
/dev/tty
/dev/urandom

Enjoy...
Peut

-----Original Message-----
From: Mark Redding [mailto:mwj_gb at yahoo.com]
Sent: 06 June 2003 02:53
To: freebsd-questions at freebsd.org
Subject: Re: passwd



#snip#

passwd needs to run setuid root, so it can write the
new password to
/etc/master.passwd:

[homer: danielby: ~]$ ls -l `which passwd`
-r-sr-xr-x  2 root  wheel  32824 19 May 11:04
/usr/bin/passwd*

You need to re-enable the setuid bit.

#end-snip#

That's not it I'm afraid. The setuid bit was set
anyway, and anyway, users who are members of the wheel
group can execute the passwd command without trouble
(I've only switched off 'other' access).

:-(



=====
Mark W J Redding

__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list