From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 11:24:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D0F716A4CE for ; Wed, 21 Jan 2004 11:24:25 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD9F343D45 for ; Wed, 21 Jan 2004 11:23:58 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 9CF6D13635; Thu, 22 Jan 2004 08:23:57 +1300 (NZDT) Date: Thu, 22 Jan 2004 08:23:57 +1300 From: Jonathan Chen To: falaki@ce.sharif.edu Message-ID: <20040121192357.GD36015@grimoire.chen.org.nz> References: <1101.81.31.169.172.1074738946.squirrel@ce.sharif.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1101.81.31.169.172.1074738946.squirrel@ce.sharif.edu> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: passwd command problem. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 19:24:25 -0000 On Wed, Jan 21, 2004 at 09:35:46PM -0500, falaki@ce.sharif.edu wrote: > Hello; > For some reason I had to add the passwd files of a previous FreeBSD 4.4 > server to a new 4.9 one. I added passwd and master.passwd. Then I > updated the db files. Now every thing is OK and all users can login. > My problem is that only the users in the wheel group can use passwd to > change their passwords. The permissions of /usr/bin/passwd is: > -r-sr-sr-x 2 root wheel 32824 Oct 27 2003 /usr/bin/passwd > > I cannot understand the reason. Can anybody help me. The permissions of /usr/bin/passwd should be: -r-sr-xr-x 2 root wheel 28828 Jan 19 08:27 /usr/bin/passwd You've got the setgid bit set on yours. -- Jonathan Chen ---------------------------------------------------------------------- "A person should be able to do a small bit of everything, specialisation is for insects"