From: "Ara.T.Howard" Date: 2005-11-23T09:42:14+09:00 Subject: Re: what the heck (changing process uid question) On Wed, 23 Nov 2005, Joe Van Dyk wrote: > My problem: When I fork a new process and set the UID of that process and > want to create a log file that I redirect output into, I'm having > difficulties getting the log file to be owned by the correct person. afaik this isn't possible from within a ruby, or any script. setuid programs are gaurded pretty heavily by the kernel. i worked on this for some time at one point and this was the only way it was possible at the time: http://codeforpeople.com/lib/ruby/setuidruby/ let me know if you figure out another method. the bottom line is that setuid program must be binary. enjoy. -a -- =============================================================================== | ara [dot] t [dot] howard [at] gmail [dot] com | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================