From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 20:12:36 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 3BE6F16A419 for ; Tue, 23 Oct 2007 20:12:36 +0000 (UTC) (envelope-from fatman@crackmonkey.us) Received: from crackmonkey.us (crackmonkey.us [70.58.166.197]) by mx1.freebsd.org (Postfix) with ESMTP id 28CC713C481 for ; Tue, 23 Oct 2007 20:12:36 +0000 (UTC) (envelope-from fatman@crackmonkey.us) Received: from tarani-bosatsu.dreamtrack.dnsalias.com (cpc1-swin7-0-0-cust216.brhm.cable.ntl.com [::ffff:86.18.88.217]) (AUTH: PLAIN fatman, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by crackmonkey.us with esmtp; Tue, 23 Oct 2007 14:12:18 -0600 id 0017C5DD.471E55A7.00004DA0 Message-ID: <471E54E0.5070200@crackmonkey.us> Date: Tue, 23 Oct 2007 21:09:04 +0100 From: Adam J Richardson User-Agent: Thunderbird 2.0.0.6 (X11/20070830) MIME-Version: 1.0 To: Mayank Jain , freebsd-questions@freebsd.org References: <200710221851.48278.mayank@in.niksun.com> <20071022202157.GF57955@hal.rescomp.berkeley.edu> In-Reply-To: <20071022202157.GF57955@hal.rescomp.berkeley.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Tue, 23 Oct 2007 20:12:36 -0000 Christopher Cowart wrote: > Unless you can find some local privilege escalation exploit, I'm > thinking you're stuck. You can probably fix it in single-user mode: > * Reboot > * Pick single user mode from the boot menu > * Accept the default shell > $ fsck -p > $ mount -u / > $ mount -a -t ufs > $ chown root /usr/bin/su > > But if the command above ran to completion, you probably have a mess of > permissions on your filesystem. You may want to look into rebuilding / > reinstalling world while you're in single. What about going to single user mode and editing /etc/passwd so the "root" line has the username "uname"? Or add user "uname" with UID 0? Regards, Adam J Richardson