Disabling All Console Access


The PAM pam_console.so module manages console file permissions and authentication. (See Chapter 25 for more information on configuring PAM.) If you want to disable all console access, including program and file access, comment out all lines that refer to pam_console.so in the /etc/pam.d directory. As root, the following script will do the trick:

cd /etc/pam.d for i in * ; do sed ‘/[^#]. *pam_console.so/s/^/#/’ < $i > foo && mv foo $i done




Official Red Hat Linux Administrator's Guide
Official Red Hat Linux Administrators Guide
ISBN: 0764516957
EAN: 2147483647
Year: 2002
Pages: 278
Authors: Red Hat Inc

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net