motion install on raspberry pi Raspberry Pi Model B Rev 2: logging issue; howto solve?
Hello,
since my raspberry SD boot card was dead, I am reinstalling raspbian on it for making running the home observation video again. So far achieved: - raspberry reachable via ssh - motion installed uname -r Code:
5.10.63+ .. log_file /var/log/motion/motion.log .. now.. sudo service motion restart Code:
Message from syslogd@raspcamera at Nov 23 21:29:02 ... (file created with sudo mkdir motion sudo chown root:motion motion sudo touch /var/log/motion/motion.log sudo chown root:motion /var/log/motion/motion.log ) sudo chmod 666 /var/log/motion/motion.log sudo ls -l /var/log/motion/motion.log Code:
-rw-rw-rw- 1 root motion 0 23. Nov 21:19 /var/log/motion/motion.log |
Quote:
Code:
sudo chmod 4755 /path/to/motion_executable |
first: done. issue still there. See at bottom.
second: "I'd run a check on the log file." this?.. sudo ls -l /var/log/motion/motion.log Code:
-rw-rw-rw- 1 motion motion 0 23. Nov 21:19 /var/log/motion/motion.log sudo ls -l /bin/motion -rwxr-xr-x 1 root root 315668 15. Nov 2020 /bin/motion sudo chmod 4755 /bin/motion sudo ls -l /bin/motion -rwsr-xr-x 1 root root 315668 15. Nov 2020 /bin/motion sudo service motion restart Code:
Message from syslogd@raspcamera at Nov 24 12:29:50 ... |
You don't need me to say, but that all looks good.
Code:
sudo service motion restart I'd also touch the log file, or otherwise write to it, to check that's possible. lastly, have you just run the moition file directly? |
error gone after
Quote:
Quote:
Quote:
|
Motion must be dropping it's privileges. Glad you sorted it. Mark this solved.
|
Quote:
https://serverfault.com/questions/37...mp-get-cleared |
Success!
Thank you, this worked perfectly for me. I created an account as a result.
|
All times are GMT -5. The time now is 01:01 AM. |