Cheap domain hosting, cheap domain names & web page promotion services
  

 Home

Red Hat Linux 9: Red Hat Linux Customization Guide
PrevChapter 24. Console AccessNext

24.3. Disabling All Console Access

The PAM pam_console.so module manages console file permissions and authentication. (See the Red Hat Linux Reference Guide 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

PrevHomeNext
Disabling Console Program AccessUpDefining the Console
 

 

 

 
 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 

 
Quotes: Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Walk beside me and just be my friend.