Motion - Feature Request 2007x 08x 20x 044016

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

Comments

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

FeatureRequestForm edit

TopicTitle Changing the user when run in daemon mode
FeatureRequestStatus Implemented
SubmittedBy KeithB
Topic revision: r4 - 12 Oct 2007, AngelCarpintero
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.