From: Andrew Walrond Date: 2003-08-30T04:59:40+09:00 Subject: File.chown removes setuid permission Is this behaviour deliberate, or a bug? The chown binary from gnu coreutils does not do this. Example: rubyx@atlas bb $ echo "test" > test rubyx@atlas bb $ chmod +sx test rubyx@atlas bb $ ls -l total 4 -rwsr-sr-x 1 rubyx users 5 Aug 29 19:56 test rubyx@atlas bb $ sudo irb irb(main):001:0> File.chown(0,0,'test') => 1 irb(main):002:0> exit rubyx@atlas bb $ ls -l total 4 -rwxr-xr-x 1 root root 5 Aug 29 19:56 test rubyx@atlas bb $