Giovanni Franza schrieb: > 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 .. >
Thanks Giovanni for your thoughts! MMMhhhh, I may try that but to be honest I doubt there is a dependence because my chown and my chmod have different targets, don't they!? I also thought of having two independent 'scripts' for that.... ? Boris ------------------------------------------------------------------------------ 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/