APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2005/03/17 vlock

© March 2005 Tony Lawrence
linux.maruhn.com/sec/vlock.html (link dead, sorry) Vlock - Locks one or more virtual console or up2date vlock on RedHat.

This lets you lock the console screens (or just the one you are using, if you prefer). Simple to use:

vlock -c 
vlock -a

With -c, it's just the tty you are presently using, while -a locks all console screens. The "-c" can be used on a telnet or ssh login though it will warn you that

 *** This tty is not a VC (virtual console). ***
 *** It may not be securely locked. ***

To use -a, you have to be presently logged in on the console. If you are not root, vlock will first ask for your password to unlock, but if that fails, it will ask for root's: root can supposedly always unlock it. My testing didn't confirm that - yes, it ASKED for root's password after failing on the user, but did not unluck even when that was correctly given. That could be very unpleasant if you couldn't kill the vlock from a telnet or ssh session.

However, this would probably be used by administrators who will ALWAYS lock the console whenever they leave it, which could be very useful against curious passerbys. You might consider combining that with restrictions in /etc/security/time.conf also.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> vlock

Inexpensive and informative Apple related e-books:

Take Control of Apple Mail, Third Edition

Digital Sharing Crash Course

Take Control of iCloud

Take Control of iCloud, Fifth Edition

Take Control of Pages

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

There is no reason anyone would want a computer in their home. (Ken Olson, president, chairman and founder of DEC)

Linux posts

Troubleshooting posts

This post tagged:





Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode