Thanks for the tip. To be honest, I'm hacking on a personal project for fun, security isn't really a concern.
Raspberry Pi (which I'm using) recommends placing startup scripts in rc.local in its official documentation: https://www.raspberrypi.org/documentation/linux/usage/rc-local.md <https://www.raspberrypi.org/documentation/linux/usage/rc-local.md> However, if /dev/video0 can't be recognized as root, I'll follow your advice and run my Ffmpeg command elsewhere. On Wed, Feb 22, 2017 at 9:09 AM, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 22.02.2017 um 18:07 schrieb christina zou: > >> better question - why would anybody start anything dangerous like >>> >> multimedia encoders as root? maybe something like SELinux/appamor is >> protecting your from yourself >> >> You are probably right. >> >> I want a Ffmpeg command to automatically start when I boot my Pi, without >> any interfacing required (login/authentication). I've currently stuck the >> command in /etc/rc.local, where everything runs as root. Do you know where >> to better place it? >> > > surely, a proper service which drops to a restricted user > > with systemd a few lines, for sysvinit there are thousands of explaes how > to start a service proper, and if you don't get something better just "man > su" > > on proper systems rc.local died in 2011.... > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".