Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

IS there any way to take an image after 3 login attempts fail.and later i want shutdown system and before this i would like to block all ports so the person cant access the system thorough any boottable device.

Here i only find the way of capture image... But rest all stuff still it is.

share|improve this question
Still no answers. Is there any one who can help me.It seems that no-buddy interested in my question. –  SachiN Feb 17 '13 at 20:01

1 Answer 1

up vote 3 down vote accepted
ts=`date +%s`

ffmpeg -f video4linux2 -s vga -i /dev/video0 -vframes 3 /home/sachin/Desktop/vid-$ts.%01d.jpg

reboot -f 

exit 0 

This the script by which i can take image of person and suddenly reboot the system.Now next task is how to execute this script at Login time providing 3 login attempts fail.

If any one find ,share whit me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.