[OpenSIPS-Devel] [ opensips-Bugs-2732021 ] wrong ownership change of pid file
SourceForge.net
noreply at sourceforge.net
Wed Apr 8 18:21:38 CEST 2009
Bugs item #2732021, was opened at 2009-04-04 23:16
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2732021&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: core
Group: trunk
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: ledda (ledda)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: wrong ownership change of pid file
Initial Comment:
opensips compiled and installed with prefix under regular account 'dima'.
>make prefix=/home/dima/oser/osrunhead install
After install pid file configured to be:
/home/dima/oser/osrunhead/var/run/opensips.pid
/home/dima/oser/osrunhead/var/run/ was created by 'dima'.
Attempt to start:
osrunhead/sbin/opensipsctl start
failed with such error in log file:
Apr 4 14:31:04 linux-dell osrunhead/sbin/opensips[25718]: ERROR:core:do_suid: failed to change owner of pif file /home/dima/oser/osrunhead/var/run/opensips
.pid: Operation not permitted(1)
I was able to start opensips changing opensipsctl and adding -u option:
$OSIPSBIN -u dima -P $PID_FILE $STARTOPTIONS 1>/dev/null 2>/dev/null
Does opensips suppose to change file ownership at all if it was started under regular user 'dima' (not root)?
Also as I understand '-u' options should not be used if I don't want to override user.
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-04-08 19:21
Message:
I made a fix on SVN. Please give it a try and report.
Thanks and regards,
Bogdan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2732021&group_id=232389
More information about the Devel
mailing list