[Users] OpenSER & SEMS, fifo's, permissions and versions
Adam Sherman
carbon60 at gmail.com
Wed Jul 6 21:12:02 CEST 2005
On 7/6/05, Adam Sherman <carbon60 at gmail.com> wrote:
> On 7/6/05, Adam Sherman <carbon60 at gmail.com> wrote:
> > On 7/6/05, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> > > if you do uid=openser, gid=voip, mask=0660, only user root, openser and
> > > users belonging to voip group will be able to read/write to the fifo file.
> >
> > So, I've got the -u/-g part. How do I set umask, should I do it
> > manually prior to starting the daemons?
>
> I'm running openser with -u openser and -g openser, but the fifo is
> still root:root. Any ideas why? (I'm using debs, BTW.)
This have something to do with it:
/* initialize fifo server -- we need to open the fifo before
* do_suid() and start the fifo server after all the socket
* are initialized, to inherit them*/
Guess the fifo is created before the switch to the unpriviledged user/group?
Thanks,
A.
--
Adam Sherman
Technologist
More information about the Users
mailing list