I did test with FreeBSD and OSX and got the same results, I
mentioned the explanation for Linux because that was the only one
I cared to find but I've seen some mentions about a sysctl
variable for them that control this precise aspect and the
default value also forbids chown for non-root users.
An alternative solution may be to recognize we are working as
root and just use setuid for the relevant operations or something ?
<snip/>
> btw I think this may vary between unixes.
I did test with FreeBSD and OSX and got the same results, I
mentioned the explanation for Linux because that was the only one
I cared to find but I've seen some mentions about a sysctl
variable for them that control this precise aspect and the
default value also forbids chown for non-root users.
An alternative solution may be to recognize we are working as
root and just use setuid for the relevant operations or something ?