Re: su/kdesu not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once upon a time, Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> said:
> Chris Adams wrote:
> > Once upon a time, Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> said:
> >> Big hammer:
> >>   strace -f su -
> > 
> > You can't strace a setuid executable.
> 
> You are right.
> Actually the execution will still happen, but with no root
> authority, so it will not be useful for debugging.
> Seeing some output incorrectly made me think it was working.

And to follow up to my brief response, you _can_ strace a setuid
executable with an extra step.  If you run strace as root, you can pass
the "-u <username>" argument, and it will switch users first (but still
trace correctly).  So, as root, you could do:

# strace -u foo -f su -

-- 
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux