Scroll to navigation

PHYSLOCK(1) General Commands Manual PHYSLOCK(1)

NAME

physlock - lock all consoles / virtual terminals

SYNOPSIS

physlock [-dhLlmnsv] [-p MSG] [-b CMD] [-a CMD]

DESCRIPTION

physlock is an alternative to vlock, it is equivalent to `vlock -an'. It is written because vlock blocks some linux kernel mechanisms like hibernate and suspend and can therefore only be used with some limitations.

physlock is designed to be lightweight, but highly depends on the kernels ioctl API.

The behaviour of physlock is completely controlled via command-line arguments, it does not rely on environment variables. physlock uses the utmp file to identify the owner of the current session (i.e. active tty) and prompts for her password to unlock the computer.

OPTIONS

Fork and detach physlock before prompting for authentication. The parent process returns right after everything is set up, so this option is useful for use in suspend/hibernate scripts.
Print brief usage information to standard output and exit.
Only lock console switching and exit.
Only enable (unlock) console switching and exit. This is useful when a prior instance of physlock has crashed and leaved the console switching mechanism locked.
Mute kernel messages on console while physlock is running.
Execute CMD before asking for password
Execute CMD after asking for password
Don't ask for authentication: just execute commands
Display MSG before the password prompt.
Disable SysRq mechanism while physlock is running.
Print version information to standard output and exit.
Wait until a SIGUSR1 signal is received to prompt for authentication. Useful if the first authentication attempt always fails due to bad input buffering in the virtual terminal. WARNING: When using this option, ensure that some external program sends a SIGUSR1 signal to physlock. Otherwise, you will be locked out of your session.

AUTHORS

HOMEPAGE

http://github.com/muennich/physlock

SEE ALSO

vlock(1)

physlock-13