From: Sergio A.S. de A. <ssa...@ss...> - 2009-12-08 03:12:42
|
Ok, thank you Crai. But, It seems that it won't capture video/pictures from the video device because of (again) permissions (actually, it's not capturing). Do I need to change the permissions also for the /dev/video0 and /dev/video1? Tanks ----- Original Message ----- From: "A. Craig West" <acr...@gm...> To: Motion discussion list <mot...@li...> Date: Mon, 7 Dec 2009 22:04:14 -0500 Subject: Re: [Motion-user] motion automatic start not working > chown -R motion /var/www/capture > chown -R motion /var/run/motion > > if motion has a group, such as motion, you can make that chown -R > motion:motion ... > > 2009/12/7 Sergio A.S. de Aguiar <ssa...@ss...>: > > Thanks for your answer, Rob. > > > > In my case, the folder in wich the images/movies for motion will be saved, is located at: > > /var/www/capture > > The folder capture has ownership of nobody:nogroup (as the others because it's located in the main folder of the apache server). If I make this folder and sub-folders owned by root:root, it has the same effect. > > I changed the permissions of this folder (just to see if it works), to 777 (also the sub-folders). > > I also created the user motion. > > Now, if I try to start motion with the command: /etc/init.d/motion start > > I get: > > > > root@cameras:/usr/local/etc# /etc/init.d/motion start > > Starting motion detection : motion > > [0] Processing thread 0 - config file /usr/local/etc/motion.conf > > [0] Processing config file /usr/local/etc/thread1.conf > > [0] Processing config file /usr/local/etc/thread2.conf > > [0] Processing config file /usr/local/etc/thread3.conf > > [0] Motion 3.2.11.1 Started > > [0] Exit motion, cannot create process id file (pid file) /var/run/motion/motion.pid: > > [0] Motion going to daemon mode > > > > As seen, the user motion can't create the pid file because it's not root. > > Even if it tells it's going to daemon mode, it's actually not running. > > If I remove the user motion, it works, but just if I start it manually. > > I never used or created the user motion before, as I just used to compile motion, as root, and made "make install" and all was going well. > > > > Sergio > > > > ----- Original Message ----- > > From: Rob MacGregor <rob...@gm...> > > To: Motion discussion list <mot...@li...> > > Date: Mon, 7 Dec 2009 17:46:37 +0000 > > Subject: Re: [Motion-user] motion automatic start not working > > > >> On Mon, Dec 7, 2009 at 14:57, Sergio A.S. de Aguiar > > <ssa...@ss...> wrote: > >> Hi. > >> > >> I am experimenting a problem, from some time now, wich is: > >> > >> When I start the computer (reboot), motion don't start. > >> If I start it by using the command: > >> > >> /etc/init.d/motion start > >> > >> I get this error: > >> > >> Starting motion detection : motion > >> start-stop-daemon: user `motion' not found > >> (Success) > >> failed > >> > >> If I create the user motion (never had to do it before), It will not > >> save any picture. > >> If I start it by using the command line (#motion), as root, it starts > >> and works fine. > >> > >> Any ideas? > > > > That it works as root means it is almost certainly a file permissions > > problem. Check that the user "motion" has ownership of the output > > directories and all files inside. > > > > -- > > Please keep list traffic on the list. > > > > Rob MacGregor > > Whoever fights monsters should see to it that in the process he > > doesn't become a monster. Friedrich Nietzsche > > > > ------------------------------------------------------------------------------ > > Join us December 9, 2009 for the Red Hat Virtual Experience, > > a free event focused on virtualization and cloud computing. > > Attend in-depth sessions from your desk. Your couch. Anywhere. > > http://p.sf.net/sfu/redhat-sfdev2dev > > _______________________________________________ > > Motion-user mailing list > > Mot...@li... > > https://lists.sourceforge.net/lists/listinfo/motion-user > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > > > > > ------------------------------------------------------------------------------ > > Join us December 9, 2009 for the Red Hat Virtual Experience, > > a free event focused on virtualization and cloud computing. > > Attend in-depth sessions from your desk. Your couch. Anywhere. > > http://p.sf.net/sfu/redhat-sfdev2dev > > _______________________________________________ > > Motion-user mailing list > > Mot...@li... > > https://lists.sourceforge.net/lists/listinfo/motion-user > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > |