From owner-freebsd-questions@FreeBSD.ORG Mon Oct 22 18:53:45 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D3CF16A417 for ; Mon, 22 Oct 2007 18:53:45 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (mailwasher.lanl.gov [204.121.3.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3049D13C481 for ; Mon, 22 Oct 2007 18:53:44 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l9MIaQ99016849; Mon, 22 Oct 2007 12:36:28 -0600 Received: from oppie-mail.lanl.gov (oppie-mail.lanl.gov [128.165.4.123]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l9MIaQH1011618; Mon, 22 Oct 2007 12:36:26 -0600 Received: from [128.165.86.10] (secretariat.lanl.gov [128.165.86.10]) by oppie-mail.lanl.gov (Postfix) with ESMTP id 7F61A1F8002; Mon, 22 Oct 2007 12:36:21 -0600 (MDT) From: James To: Mayank Jain In-Reply-To: <200710221851.48278.mayank@in.niksun.com> References: <200710221851.48278.mayank@in.niksun.com> Organization: Los Alamos National Laboratories Date: Mon, 22 Oct 2007 12:36:47 -0600 Message-Id: <1193078207.73574.81.camel@secretariat.lanl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: jamesh@lanl.gov X-Spam-Status: No Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: su: not running setuid X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jamesh@lanl.gov List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 18:53:45 -0000 On Mon, 2007-10-22 at 18:51 +0000, Mayank Jain wrote: > Hi all, > > I have run chown -R uname:wheel . as root in the / directory. Now it is not > allowing me to log in as su. > Giving the following error > > su > su: not running setuid > > I have also tried su -l but still same error. Can any body suggest me some > solution to this problem. > > uname -a > FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD 6.2-RC1-p1 #0: Mon Dec 4 > 09:56:16 UTC 2006 > root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386 > > I have also tried following but it didn't allow me to do so. > chown root:wheel /usr/bin/su > chown: /usr/bin/su: Operation not permitted Well, you've broke that, then. You have to restore correct owners to everything correctly. The only thing I can think of is a fresh install, which I seem to recall doesn't overwrite your home dirs, or /usr/local (can anyone back me up on this?) and never, ever run a recursive ownership change from / again, ever. Ever. I'm not even certain you could manage a buildworld from here. Judging from the fact tat you're running RC1-p1, I'd guess that you may not even be familiar with what a buildworld is, is that right? Why did you do that, incidentally? Whatever result you were trying to achieve can probably be accomplished once your system is running correctly, so let's find out what it was. James