LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-20-2011, 12:32 PM   #1
Canadian1296
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
Question Make computer shutdown on failed login attempt?


I have a computer I will be running from a LiveCD (no harddrive) for encrypting and decrypting messages and files with PGP. The setup is basically my private key will be ok the computer (in RAM) and backed up onto a truecrypt volume (memory stick). The computer will stay running. If it's shutdown, the private key will be lost as it was stored in RAM, and must be put back on from the truecrypt volume. I'm working on the LiveCD (customizing a command line distribution of Ubuntu), and I'm looking for a way to make the computer shutdown if a bad password is typed at the login screen. This way if anyone besides me tries to log in, the computer will shutdown and the private key will be lost. I have no idea where to start with this, so any help is greatly appreciated. Also, please don't criticize what I'm doing with the computer. The reason I'm doing this is to see what's possible. I want to learn as much as I can about how the operating system works
 
Old 11-20-2011, 01:14 PM   #2
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 40

Rep: Reputation: 5
Swatch to watch syslog?

I think you could run swatch or logwatcher (?) against your log and have its action be to issue 'shutdown.' But I think you'll need to set sshd to only allow one attempt (if that's what you want). I think you could configure this while running the LiveCD but I don't know how you'd *save* it for the next boot....
 
Old 11-21-2011, 12:03 AM   #3
Canadian1296
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for the suggestion, I'm looking into it and it looks promising. I'll try it when I have more time. Any ideas on how to do this while in the chroot environment (when building the livecd) so its perminent?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Block IP after failed login attempt using iptables? FireRaven Linux - Security 6 08-11-2009 12:33 PM
How to make shutdown on login screen available to anyone lgoodman SUSE / openSUSE 2 08-28-2007 08:40 AM
why does my computer shutdown instead of showing a login screen??? staticborris SUSE / openSUSE 2 12-09-2005 04:32 PM
Failed attempt at 2.6.10 icpsvt Slackware 6 02-08-2005 08:25 PM
every attempt has failed ed_norton Linux - Newbie 3 04-03-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration