Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 1999 16:23:46 -0400 (EDT)
From:      "James A. Mutter" <jmutter@netwalk.com>
To:        Pedro Leitao <pete@jeeves.poopie.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: passwd
Message-ID:  <Pine.BSF.4.05.9905081613130.91346-100000@insomnia.local.net>
In-Reply-To: <Pine.BSF.4.05.9905081449590.13196-100000@jeeves.poopie.net>

next in thread | previous in thread | raw e-mail | index | archive | help

I'm not sure what you did to chfn, or why that would change anything
having to do with passwd, but...

:I tried to fix but....
:
:before doing anything passwd's permissions where
:-r-sr-xr-x  2 root  wheel  24976 Feb 15 10:44 /usr/bin/passwd

OK.  That's what passwd _should_ be.


:now after screwing around I get
:-r-xr-xr-x  2 root  wheel  24976 Feb 15 10:44 /usr/bin/passwd

That's what passwd _shouldn't_ be.  Notice that it isn't setuid root
anymore.

:when a user tries to change his password it gets this
:passwd: error opening database: /etc/pwd.db.: Permission denied
:passwd: /etc/master.passwd: unchanged

They're getting the error because you changed the permissions on
passwd.  Since it's not setuid root it can't edit/update the password
database (master.passwd).

***
This will fix things (put them back to the way they were)
***

To fix passwd try this as root:
  cd /usr/bin;
  chmod 4555 passwd chfn

FYI:  chfn/chpass/chsh/ypchfn/ypchpass/ypchsh are all the same file
(They're hard linked).

In your original message you said "I turned their permissions to run
chfn off..."  How did you do accomplish this?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905081613130.91346-100000>