On 21/01/16 23:58, Dmitry Katsubo wrote: > On 2016-01-21 00:42, Ximin Luo wrote: >> Hi Dmitry, I believe I fixed this just yesterday with 3.2.12+git20140228-8. >> Can you try it and confirm? > > I have downloaded the package from sid. Then I did: > > # rm -R /var/lib/motion > # dpkg -i motion_3.2.12+git20140228-8_i386.deb > Unpacking motion (3.2.12+git20140228-8) over (3.2.12+git20140228-7) ... > Setting up motion (3.2.12+git20140228-8) ... > Processing triggers for systemd (228-2) ... > Processing triggers for man-db (2.7.5-1) ... > # ls -ld /var/lib/motion > ls: cannot access /var/lib/motion: No such file or directory > # /etc/init.d/motion start > Starting motion (via systemctl): motion.service. > # ls -ld /var/lib/motion > ls: cannot access /var/lib/motion: No such file or directory > > I am not sure at what moment it should appear... >
Try this: uninstall motion, then `sudo deluser motion`. This should also automatically delete the motion group as well. If it doesn't also run `sudo deluser --group motion`. Then when you reinstall motion, that directory should be created by `adduser` when it creates the motion user again. (It is created motion:motion; if you want motion:adm instead you should probably edit /etc/adduser.conf, see `man adduser.conf` for more details...) I think what happened to you was that you purged motion (or otherwise removed /var/lib/motion) before. Am I right? The previous purge behaviour removed /var/lib/motion, which I fixed here: [1] but I didn't think about what would happen to users that had already done this. To fix this, I will add some logic to the postinst to re-create the motion user's $HOME if it doesn't already exist *and* it's mentioned in motion.conf. This condition should allow us to avoid interfering where the sysadmin removed /var/lib/motion on purpose. Let me know if you think that will cause problems. X [1] https://anonscm.debian.org/cgit/users/infinity0/motion.git/commit/?id=7a2c309b65400a24aa68bc502ff94f783e9536cb -- GPG: 4096R/1318EFAC5FBBDBCE git://github.com/infinity0/pubkeys.git