I think the maintainer has made some changes to the daemonize.c file but forgot to put the setuid and setgid part back.
Check whether you have the daemonize.c file in your source and if the version is v1.2, make the following modification.
if (chdir(working_dir)<0){ LOG(L_CRIT,"cannot chdir to %s: %s\n", working_dir, strerror(errno)); goto error; }
---> if (do_suid()<0) { ---> LOG(L_CRIT,"Cannot setuid or setgid\n"); ---> goto error; ---> }
/* fork to become!= group leader*/ if ((pid=fork())<0){ LOG(L_CRIT, "Cannot fork:%s\n", strerror(errno)); goto error;
Could the maintainer (Andrei, I believe) change that back and commit the CVS again.
Many thanks,
Zeus
-----Original Message----- From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Atle Samuelsen Sent: Tuesday, 6 April 2004 4:36 PM To: Carlo Pires Cc: serusers@lists.iptel.org Subject: [Serusers] Re: [Serdev] SER don't apply gid to /tmp/ser_fifo
play with fifo_mode=0666 it wont let you chnage the UID and GID but it works :)
- Atle
- Carlo Pires carlo@uga.com.br [040406 01:24]:
Hi,
I'm trying to set uid="ser" and gid="www-data" on ser.cfg. But SER creates /tmp/ser_fifo with user/group root owner always.
What is wrong
here ?
-- []s Carlo Pires
Serdev mailing list serdev@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serdev
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers