Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2005 17:42:38 +0200
From:      "Yavuz Maslak" <maslak@ihlas.net.tr>
To:        "Bill Moran" <wmoran@potentialtech.com>, "Jerry McAllister" <jerrymc@clunix.cl.msu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I could not become superuser
Message-ID:  <181601c5ec56$b4454bb0$dc96eed5@ihlasnetym>
References:  <17db01c5ec28$426f8920$dc96eed5@ihlasnetym><200511181506.jAIF6EpZ023847@clunix.cl.msu.edu> <20051118101358.5decddbc.wmoran@potentialtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks a lot
my problem has been solved.
the permission wrong caused this problem.

I rewrote permission right as below
chmod 4755 /usr/bin/su





----- Original Message ----- 
From: "Bill Moran" <wmoran@potentialtech.com>
To: "Jerry McAllister" <jerrymc@clunix.cl.msu.edu>
Cc: <maslak@ihlas.net.tr>; <freebsd-questions@freebsd.org>
Sent: Friday, November 18, 2005 5:13 PM
Subject: Re: I could not become superuser


> Jerry McAllister <jerrymc@clunix.cl.msu.edu> 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
> _______________________________________________
> 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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?181601c5ec56$b4454bb0$dc96eed5>