[Serusers] Re: [Serdev] SER don't apply gid to /tmp/ser_fifo

Zeus Ng zeus.ng at isquare.com.au
Tue Apr 6 15:36:31 CEST 2004


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 at lists.iptel.org 
> [mailto:serusers-bounces at lists.iptel.org] On Behalf Of Atle Samuelsen
> Sent: Tuesday, 6 April 2004 4:36 PM
> To: Carlo Pires
> Cc: serusers at 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 at 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 at lists.iptel.org http://lists.iptel.org/mailman/listinfo/serdev
> > 
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
> 




More information about the sr-users mailing list