Try this script.

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


This will disable all these accesses for the users by commenting out all
lines that refer to pam_console.so in the /etc/pam.d directory. 

On Fri, 2003-02-28 at 22:55, jerome wrote:
>    im trying to disable some commands in the console for regular users such as 
> reboot so i tried to remove some files in /etc/security/console.apps/
> 
> tried deleting "reboot" then issued a reboot command using a regular 
> account...
> 
> but it caused a segmentation fault... i tried looking at messages in /var/log/ 
> hoping something would show... : (
> 
> any idea what happen or did i miss out something...?
> 
> TIA
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> 
> Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
> 
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
> PROTECTED]


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
PROTECTED]

Reply via email to