From: Adam G. <mai...@we...> - 2017-05-15 02:09:18
|
On 15/05/17 11:19, ml...@13... wrote: > Motion runs and works fine when started as root. > > > I've created a user (motion) and assigned it to a secondary group (video). > > /dev/video0 = crw-rw---- 1 root video > > So I: > useradd motion > usermod -a -G video motion > chmod 777 /var/run/motion <---(fixed the PID file problem.) > > So now motion starts and stays running but, I get: I would suggest that you instead do this: useradd motion usermod -a -G video motion mkdir -p /var/run/motion chown motion /var/run/motion You don't really need every user to be able to write to that location! > Firefox can’t establish a connection to the server at 192.168.1.123. > > This is probably a motion webserver permission problem but I can't seem to find why. > > > Any ideas? You need to configure motion on a port >1024 as non-root users can't bind to low numbered ports. Hope that helps, if not, please check the motion log file for details, and send them to the list for further advice. Regards, Adam -- Adam Goryachev Website Managers www.websitemanagers.com.au |