* Package name : login-webcam Version : 1.0 Upstream Author : GenaBitu <genabitu@gmail.com> * URL : https://github.com/GenaBitu/login-webcam * License : GPLv3 Programming Lang: Shell Description : Take picture using a webcam on failed login attempts This Debian (Ubuntu) utility automatically takes pictures using your webcam on failed login. Pictures are taken on failed login attempts (wrong password) both from graphical and command-line interface.
It looks like the code of the package is very, hm, short:
time=$(date -I"seconds")
ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -frames 1
"/var/log/login-webcam/$time.jpg" 2> /dev/null
plus 3 or 4 lines of PAM config, plus 674 lines of GPL3 :~)
I wonder, whether the package is really justified.
Also, why does anybody want to have photos of their irritated face
when mistyping their password? Assuming that anybody with malicious
intent will put their thumb in front of the lense anyway. Sneaky
people who got hold of ones password and log in successfully are
not recorded, right?
I agree, the code is very short, however, the modifications to PAM config are not so trivial IMHO. In the GitHub repo I made some changes to make it more configurable (separate config file for device, resolution etc.). I am currently looking into the possibility of sending the picture via e-mail (Improves the usability you mentioned, at least for me), but I am stuck. AFAIK either you need a local SMTP server or use an open relay, which are usually blacklisted though. Ideas welcome...