From owner-freebsd-questions@FreeBSD.ORG Fri Nov 18 15:14:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 929A516A443 for ; Fri, 18 Nov 2005 15:14:01 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from internet.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AF7943D55 for ; Fri, 18 Nov 2005 15:14:00 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from localhost (monrovll-cuda1-24-53-250-148.pittpa.adelphia.net [24.53.250.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id E7FC669A4F; Fri, 18 Nov 2005 10:13:59 -0500 (EST) Date: Fri, 18 Nov 2005 10:13:58 -0500 From: Bill Moran To: Jerry McAllister Message-Id: <20051118101358.5decddbc.wmoran@potentialtech.com> In-Reply-To: <200511181506.jAIF6EpZ023847@clunix.cl.msu.edu> References: <17db01c5ec28$426f8920$dc96eed5@ihlasnetym> <200511181506.jAIF6EpZ023847@clunix.cl.msu.edu> Organization: Potential Technologies X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: maslak@ihlas.net.tr, freebsd-questions@freebsd.org Subject: Re: I could not become superuser 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: Fri, 18 Nov 2005 15:14:01 -0000 Jerry McAllister wrote: > > > > Hello > > > > I installed FreeBSD6.0. and it was running well by today . > > My FreeBSD server gave a problem about user login. > > I could not become superuser. > > my user that has superuser. When I login the server this user > > the screen gives things as below > > user>su > > not running setuid > > > > what shell I do ? > > I think you are saying that you tried to 'su' from a non root user login. > Is that true? > If so, the thing to check is if that user is in the 'wheel' group. > Look in the file /etc/group and make sure that user is added > to the wheel group. Actually, I believe su is more helpful if that's the case, giving an error such as "you are not in the correct group ..." The "not running setuid" makes me wonder. Have you changed permissions on any files on that machine. the su program will need setuid permissions and be owned by root to work properly. On my 5.4 machine, it looks like this: ls -l /usr/bin/su -r-sr-xr-x 1 root wheel 14292 May 27 12:24 /usr/bin/su -- Bill Moran Potential Technologies http://www.potentialtech.com