You are not logged in.

#1 2013-08-06 14:06:07

Socal Tom
Member
Registered: 2013-04-09
Posts: 21

How to change user on motion daemon

I using motion to monitor some security cameras. All the files are saved as owned by root.   Samba won't let me create a root samba user, so is there a way to make the daemon start as a different user?   I checked the motion wiki and didn't find anything.  I also searched the arch wiki but didn't get any relevant results.
Thanks
Tom

Offline

#2 2013-08-19 18:02:14

mau5kito
Member
Registered: 2013-05-11
Posts: 6
Website

Re: How to change user on motion daemon

Did you solve your problem? If not, how do you launch motion?

You can launch it as a normal user and specify your config file with:

motion -c ~/motion.conf

Don't forget to set your target_dir.

Offline

#3 2015-01-03 15:11:31

X-NicON
Member
Registered: 2013-02-27
Posts: 2

Re: How to change user on motion daemon

in /lib/systemd/system/motion.service
Add to [Service]

User=username
Group=groupname

can create user and group "motion" (as in ubuntu) (add group video for motion user, and rights 777 conf file)
----------
https://bbs.archlinux.org/viewtopic.php?id=162297

Last edited by X-NicON (2015-01-03 15:15:29)

Offline

#4 2015-01-03 15:40:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to change user on motion daemon

X-NicON wrote:

in /lib/systemd/system/motion.service

You shouldn't do this as the file will get overwritten every time you update motion.

Either create a .conf file with the additions or copy the file to /etc/systemd/system/motion.service and edit that instead.

https://wiki.archlinux.org/index.php/Sy … unit_files


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB