Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2004 08:23:57 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        falaki@ce.sharif.edu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: passwd command problem.
Message-ID:  <20040121192357.GD36015@grimoire.chen.org.nz>
In-Reply-To: <1101.81.31.169.172.1074738946.squirrel@ce.sharif.edu>
References:  <1101.81.31.169.172.1074738946.squirrel@ce.sharif.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz>
----------------------------------------------------------------------
             "A person should be able to do a small bit of everything,
                                        specialisation is for insects"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040121192357.GD36015>