/usr/lib/opensips/opensipsctl/opensipsctl.fifo: line 89: /tmp/opensips_fifo: Permission denied

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

/usr/lib/opensips/opensipsctl/opensipsctl.fifo: line 89: /tmp/opensips_fifo: Permission denied

Iñaki Baz Castillo
Hi, I configure OpenSIPS to run as "opensips" user:group (this is an user who
has no shell asigned).


Now as root I do:
---------
  ~# opensipsctl monitor
  /usr/lib/opensips/opensipsctl/opensipsctl.fifo: line 89: /tmp/opensips_fifo:    
  Permission denied  <-- translation
---------


The FIFO pipe is:
---------
  /tmp# ls -l
  total 860K
  prw-rw---- 1 opensips opensips    0 2008-11-10 00:11 opensips_fifo|
----------


I can't understand why **root** user cannot read/write into the pipe. But even
if I configure:
----------
  modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
  modparam("mi_fifo", "fifo_mode", 0777)
----------
I can't run "opensipsctl" as root.


How to handle it? Thanks.



--
Iñaki Baz Castillo

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: /usr/lib/opensips/opensipsctl/opensipsctl.fifo: line 89: /tmp/opensips_fifo: Permission denied

Iñaki Baz Castillo
El Lunes, 10 de Noviembre de 2008, Iñaki Baz Castillo escribió:

> Hi, I configure OpenSIPS to run as "opensips" user:group (this is an user
> who has no shell asigned).
>
>
> Now as root I do:
> ---------
>   ~# opensipsctl monitor
>   /usr/lib/opensips/opensipsctl/opensipsctl.fifo: line 89:
> /tmp/opensips_fifo:     Permission denied  <-- translation
> ---------
>
>
> The FIFO pipe is:
> ---------
>   /tmp# ls -l
>   total 860K
>   prw-rw---- 1 opensips opensips    0 2008-11-10 00:11 opensips_fifo|
> ----------

If I use mi_datagram module, with exactly same configuration, I can use
opensipsctl command as root with no problem:

  /tmp# ls -l
  prw-rw---- 1 opensips opensips 0 2008-11-10 00:28 opensips_fifo|
  srw-rw---- 1 opensips opensips 0 2008-11-10 00:28 opensips.sock=




--
Iñaki Baz Castillo

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users