14 Dec
2001
14 Dec
'01
16:23
On Friday 14 December 2001 17.18, Anders Johansson wrote:
On Friday 14 December 2001 17.14, Praise wrote:
The script is +sgid but I cant execute chown.
In Linux you can't set suid or sgid on shell scripts. Well, you can, but the OS won't do anything about it. I would suggest either rewriting the script in a compiled language or using sudo.
regards Anders
One more thing I forgot to mention: chown is hardcoded never to chown anything unless the user running it is uid 0 (root). if you want to let your users chown things, you'll have to make chown suid root. sgid isn't enough. //Anders