You are not logged in.
Pages: 1
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
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
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
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.
Offline
Pages: 1