From: Robert Dober Date: 2006-07-12T00:48:20+09:00 Subject: Re: Nuby Q: Daemonize (other materials have been read!) ------=_Part_124960_14756014.1152632897148 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline [long snip] > > > > FYI: I also need to figure out how to reset the userid and groupid, but > > I have a book. :) > > you cannot do this from withint a script - a restriction placed by unix - > only > binary programs may be 'setuid' programs. Right but sudo might be what the doctor ordered :) i have a method to do this in ruby, > which is often important for web and db related work where authentication > might > be allowed for only certain reasons. in any case setuid is really only > appropriate for certain security situations and can be very, very bad for > your > system health. my inclination would be to say that if you are reading > about it > you shouldn't use it! ;-) that being said this will accomplish what you > seek: > > http://codeforpeople.com/lib/ruby/_ruby/ > > regards. > > -a > -- > suffering increases your inner strength. also, the wishing for suffering > makes the suffering disappear. > - h.h. the 14th dali lama > > Cheers Robert --=20 Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_124960_14756014.1152632897148--