-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Boris wrote: > ... > I made this big script: > > RCDLINKS="2,S80" > sleep 60 > chmod u+s /usr/sbin/ether-wake > chown wolagent:wolagent /home/wolagent > > The chown work, but the chmod doesn't! As you can see, I tried to solve > this by delaying the execution - with no success. What makes me really > confused, is that it works when I execute it manually after reboot. > > What do you think? > Is it possible that you must first do chown and then chmod ? Otherwirse it must be possible to do suid at a your shell and then, giving the ownership to root, you can escale root privileges. To avoid this, if I remeber well, suid bit will be reset as a result of chown ..
HTH Giovanni -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJQsiE4yUxzYWi6QcRAvh7AKDN2kzFdM7AtrRFwrVwmoW3Zm40/ACfWMvc CxpNSpalLxSoDfbKBXyNDMU= =urMI -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/