EasyCwmp - easycwmp
View Issue Details
0000367easycwmp[All Projects] Bugpublic2019-01-31 16:572019-01-31 16:57
bmiramont 
 
highminoralways
newopen 
x86debianstretch
0000367: Can't run easycwmpd as non-root user
Hi,
I need to run easycwmpd as non root.
I am migrating from easycwmp 1.1.2 on openwrt (where I can run as non-root).
Init script on openwrt is using procd.

On my debian setup, I use openwrt 1.6.1 which runs fine as root.

Here are several commands I try :
# start-stop-daemon -c remotemgmt -x /usr/sbin/easycwmpd -S -- --getrpcmethod
main(285): run easycwmpd as root

process does not start but easycwmp.pid is created in /var/run

when I run :
# start-stop-daemon -b -c remotemgmt -x /usr/sbin/easycwmpd -S -- --getrpcmethod

no message but easycwmp.pid is created in /var/run.

# start-stop-daemon -b -x /usr/sbin/easycwmpd -S -- --getrpcmethod
this launches the process ok in the background.

the correct permissions are on :
/run -> 777 for debugging purposes
/tmp/ubus.sock -> 777 for debugging purposes

thank you,

brice
# start-stop-daemon -c remotemgmt -x /usr/sbin/easycwmpd -S -- --getrpcmethod
main(285): run easycwmpd as root

where remotemgmt is my user
No tags attached.
Issue History
2019-01-31 16:57bmiramontNew Issue

There are no notes attached to this issue.