Oleg Goldshmidt wrote:
If you run su as root, it will not ask for a password, and all is dandy.I tried to run strace (I wonder how I forgot about it in the first place),I am missing something here. You are not trying to "su root", you are
but it seems it never allows me to su root with strace. I keep getting
'Incorrect Password'.
trying to "su - amit". I can strace that on my machine (s/amit/oleg/)
without a problem. And it does not ask you for a password, does it?
If you run su as unprivileged user, su is SUID root. It needs that in order to be able to change your UID, whether to root or to anyone else. strace, on its part, works by attaching a debugger to the process in question. For security reasons, attaching debuggers to SUID processes is not allowed (otherwise you can stop the app, make it do whatever it is you want it to do, and gain privileges you are not entitled to).
I believe you will find that amit is not running as root.
--
Shachar Shemesh
"Hamakor" board member (http://www.hamakor.org.il)
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]
