Re: su: not running setuid



On Tue, Oct 23, 2007 at 09:09:04PM +0100, Adam J Richardson wrote:
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?

The chown command would have looked up "uname" via libnss and used the
numeric UID to alter the filesystem entries. The most you could do here
is change the symbolic name for the "uname" user and make the ls -l
output look different. Either way, you're stuck with the files on the
filesystem not being owned by UID 0. I would highly recommend not
mucking with /etc/passwd and letting rebuild world fix things.

--
Chris Cowart
Lead Systems Administrator
Network & Infrastructure Services, RSSP-IT
UC Berkeley

Attachment: pgpqfi5tNKGV8.pgp
Description: PGP signature



Relevant Pages

  • Re: MESSAGES STUCK IN OUTBOX
    ... That patch is a year old and when I tried to download it, ... This seems to be stuck in the Outbox and I am unable to delete it. ... Installing the KB941090 update will just fix the problem for now. ... *There are no dumb questions, just the people that do not ask ...
    (microsoft.public.windows.vista.mail)
  • Re: Clue bats
    ... This time, it's scaffolding; but I ... For me, it's not that I'm too lazy to go back and fix earlier chapters, ... I try not to unless I'm really stuck. ...
    (rec.arts.sf.composition)
  • Re: MESSAGES STUCK IN OUTBOX
    ... When I opened Windows Mail, it immediately sent all the messages I ... This seems to be stuck in the Outbox and I am unable to delete it. ... Installing the KB941090 update will just fix the problem for now. ... able to delete the stuck message from the problem folder. ...
    (microsoft.public.windows.vista.mail)
  • Re: AAArgh! cant play multiplayer games
    ... > Thanks for your continued support and advice. ... > actually fix this anyway. ... V4 version of regedit.exe ran, it choked on the version 5 regedit file. ... > I'm stuck, stuck stuckity stuckity stuck stuck stuck. ...
    (microsoft.public.games.zone)
  • Re: proper tty-ldisc refcounting (was Re: WARNING at: drivers/char/tty_ldisc.c)
    ... On Mon, 3 Aug 2009, Greg KH wrote: ... Oh wait, the original problem, single user mode. ... Patches 1-3 should fix that one. ... the .31 -stable tree once it goes into Linus's tree and no one has any ...
    (Linux-Kernel)