[LUNI] POSIX setuid doesn't work on Sarge but works on Woody
Jay Strauss
me at heyjay.com
Sun Mar 27 12:53:40 CST 2005
Sean T. Kirby wrote:
> On Sat, 26 Mar 2005 20:21:27 -0600, "Jay Strauss" said:
>
>>Hi,
>>
>>I have a simple script (boiled down to the essence) that daemonizes, if
>>I run it on my woody box it works if I run it on my Sarge box it doesn't.
>>
>>Any idea what I have to configure, change, or get new software to fix
>>this?
>>
>>Below is the example
>>
>>Thanks
>>Jay
>>
>>jstrauss at copper:~$ cat demon
>>#!/usr/bin/perl
>>
>>use Net::Server::Daemonize qw(daemonize);
>>
>>daemonize(
>> 'jstrauss', # User
>> 'jstrauss', # Group
>> 'my.pid' # Path to PID file
>>);
>>
>>jstrauss at copper:~$ ./demon
>>Couldn't POSIX::setuid to "1000" [Operation not permitted]
>
>
> Try setting the setuid/setgid bits on the script.
Last night I started using a different approach, because I couldn't
figure it out. The new module Proc::Daemon is working good enough for
my purposes. Thanks though
Jay
More information about the luni
mailing list