From: Daniel Berger Date: 2009-01-28T14:18:04+09:00 Subject: Re: Super User Can't Change UID? James Gray wrote: > Why would the super user not be able to switch UID's? > > $ sudo ruby -r etc -e 'Process.uid = Etc.getpwnam("james").uid' > Password: > -e:1:in `uid=': Operation not permitted (Errno::EPERM) > from -e:1 > > Tips of TFM I should go R are welcome. :) I seem to recall that setreuid() is busted on OS X, 10.4.x anyway. I think it's fixed in 10.5, but I can't confirm. I know this has come up before. Check the the ruby-core archives. Regards, Dan