From owner-freebsd-questions Tue May 11 20:12:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pokey.local.net (tcs1-38.arl.netwalk.net [216.69.200.38]) by hub.freebsd.org (Postfix) with ESMTP id 508441527E for ; Tue, 11 May 1999 20:11:44 -0700 (PDT) (envelope-from jmutter@netwalk.com) Received: from insomnia.local.net (insomnia.local.net [192.168.2.3]) by pokey.local.net (8.9.2/8.9.2) with ESMTP id QAA81629; Sat, 8 May 1999 16:20:41 -0400 (EDT) (envelope-from jmutter@insomnia.local.net) Date: Sat, 8 May 1999 16:23:46 -0400 (EDT) From: "James A. Mutter" Reply-To: jmutter@netwalk.com To: Pedro Leitao Cc: freebsd-questions@freebsd.org Subject: Re: passwd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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