From: Rob Biedenharn Date: 2009-01-28T12:00:26+09:00 Subject: Re: Super User Can't Change UID? On Jan 27, 2009, at 9:34 PM, James Gray wrote: > On Jan 27, 2009, at 6:45 PM, Rob Biedenharn wrote: > >> It works for me on Ubuntu and Mac OS X also. > > Were you using Apple's bundled Ruby or something you compiled? > > James Edward Gray II Apple's /usr/bin/ruby. (I'd answered before I saw your clarification.) I also just ran it fine with macruby. $ sudo macruby -r etc -e 'puts Process.pid,Process.uid; sleep 2;puts "now"; Process.uid = Etc.getpwnam("rab").uid; puts Process.uid; sleep 2' Password: 26951 0 now 501 I don't suppose that really helps you much. -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com