Feature Request: Changing the user when run in daemon mode
Description
If there isn't a way already, I think there should be an option where motion can change the user id that it runs under. Similar to the way other services change their user ids. (apache, postgresql...)
I run motion from the init scripts and they all start as root.
This would help with security if anyone could hack motion. What do you think?
--
KeithB - 20 Aug 2007
Follow up
I'm using 'startproc' to start motion as a specific user from an init script. It works perfectly for me.
Would that also be an option for you?
--
JoergWeber - 22 Aug 2007
I'm using debian and the init script, /etc/init.d/motion, uses start-stop-daemon to start motion. All I have to do is to add --chuid
to specify what user it should run as.
-- DagErlandsson - 23 Aug 2007
It's implemented in init.d script for debian as Dag said :
--chuid motion
-- AngelCarpintero - 12 Oct 2007