From owner-freebsd-questions@FreeBSD.ORG Mon Oct 22 19:28:21 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 71C7116A469 for ; Mon, 22 Oct 2007 19:28:21 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.231]) by mx1.freebsd.org (Postfix) with ESMTP id 152D813C48A for ; Mon, 22 Oct 2007 19:28:20 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so484484nzf for ; Mon, 22 Oct 2007 12:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; bh=wb8nYslK/GTo8cbqNVP/2aC4kqC+io8zVu3B3MxZ3Aw=; b=V0OBKoC85F+A6ljTCUcSlm49d0cFeU96Fn0xfz5UmsispzM1YaXkrSvsYndao5Iu8FDJQ+TGVbSN3ib5CrgGbwrIvE13nP8RpVyShjoUnjRKEHvtibGBOCknBE2xBWO1Mou5+8VWcdKhU1nn8udjBRXjGxppxubxnJIa/1MSPpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=syM22uPI4EYlPsQazKQP3aCwNWA3CIlaogTWVk1RDlduGStDVcDfpztBN+EimnaG9ocmfQHG4FobMRhvsCfGZLWIeyTssl7+Hgr1vqjED1Vn029CFjXBbGJ+SRyynXxqJib6+lBHAS+QJ3bMB7V7TS5OUXc8bgYIibXYkAykPEs= Received: by 10.142.217.17 with SMTP id p17mr1532710wfg.1193081290844; Mon, 22 Oct 2007 12:28:10 -0700 (PDT) Received: from ?10.0.0.14? ( [74.95.66.25]) by mx.google.com with ESMTPS id v56sm13343364pyh.2007.10.22.12.28.09 (version=SSLv3 cipher=OTHER); Mon, 22 Oct 2007 12:28:10 -0700 (PDT) In-Reply-To: <200710221851.48278.mayank@in.niksun.com> References: <200710221851.48278.mayank@in.niksun.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8818DBBA-040A-40BD-9444-CDF448ED43AC@gmail.com> Content-Transfer-Encoding: 7bit From: Eric Crist Date: Mon, 22 Oct 2007 14:28:05 -0500 To: Mayank Jain X-Mailer: Apple Mail (2.752.3) 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2007 19:28:21 -0000 If you executed the command you claim you did, you're system permissions are really screwed up. You've changed ownership of *EVERY* file on the system to uname:wheel. My best guess is that su is trying to run as uname (setuid) and it's not getting the permissions is needs. 4th and long I'm guessing. You're best of to punt and reinstall. Can you even log in as root from the console? Eric On Oct 22, 2007, at 1:51 PMOct 22, 2007, 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 > > -- > Regards > Mayank Jain(Nawal) > Niksun > 9818390836 > www.mayankjain.110mb.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" ----- Eric F Crist Secure Computing Networks