View Single Post
Old 9th February 2010, 19:54
jnsc jnsc is offline
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 531
Thanks: 11
Thanked 175 Times in 79 Posts

It's only possible to execute the chown command from the root user. Here is a very interesting reference post, but as it's quite long, I will post the part that is interesting for us.

The default with most OS's is for chown to be restricted to root only.
And there is a consensus that it should stay this way for security
considerations. If a non-root user does change the owner of a file and
any execute bit is on, the SUID and SGID bits must be cleared. This may
or may not happen with root.
Reply With Quote