From owner-freebsd-questions Sat May 8 13:48:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sawasdee.cc.columbia.edu (sawasdee.cc.columbia.edu [128.59.59.136]) by hub.freebsd.org (Postfix) with ESMTP id 8395A15161 for ; Sat, 8 May 1999 13:48:03 -0700 (PDT) (envelope-from stuyman@confusion.net) Received: from confusion.net (dialup-5-5.cc.columbia.edu [128.59.47.25]) by sawasdee.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA20575; Sat, 8 May 1999 16:47:44 -0400 (EDT) Message-ID: <3734A2A8.959ABADD@confusion.net> Date: Sat, 08 May 1999 16:46:32 -0400 From: Laurence Berland Organization: B.R.A.T.T. X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Pedro Leitao Cc: freebsd-questions@FreeBSD.ORG Subject: Re: passwd References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It needs to be suid so that it runs as root, otherwise it can't access the files that it needs to. Solution: cd /usr/bin chmod 2555 passwd and it should work Pedro Leitao wrote: > > before doing anything passwd's permissions where > -r-sr-xr-x 2 root wheel 24976 Feb 15 10:44 /usr/bin/passwd > ^See the S? > now after screwing around I get > -r-xr-xr-x 2 root wheel 24976 Feb 15 10:44 /usr/bin/passwd > ^Now it's gone > 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 > -- Laurence Berland, Stuyvesant HS Debate <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net icq #7434346 aol imer E1101 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message