shutdown.allow not working

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Old 03-11-2012
MySQL shutdown.allow not working

Dear Frnds

I want to allow few users to reboot the machine from Console.I have altered the ctlaltdel line with -a flag in " inittab file " I have also created shutdown.allow file in /etc and putted some users there.

The problem is when i try to reboot with users except users in /etc/shutdown.allow , machine is rebooting.I want to restrict other users.

Please help me

Thank You
# 2  
Old 03-11-2012
You can also edit the /etc/sudoers file and allow specific users to shutdown or reboot the system .Something like that .
## Allows members of the users group to shutdown this system
# %users  localhost=/sbin/shutdown -h now

Last edited by codemaniac; 03-11-2012 at 01:21 AM..
This User Gave Thanks to codemaniac For This Post:
Vaibhav.T (03-11-2012)
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Disk Space Utilization in HTML format working in one environment and not working on the other Harihsun Shell Programming and Scripting 13 08-14-2018 07:45 PM
Working web service call not working with curl abigbear Shell Programming and Scripting 3 08-13-2017 03:02 PM
Automating pbrun /bin/su not working, whenever manually it is working using putty jorgejac Shell Programming and Scripting 14 12-03-2015 01:32 PM
Nslookup working but ping not working at windows client boby.kumar Red Hat 5 02-28-2014 06:27 AM
Script not working in cron but working fine manually jasperux Shell Programming and Scripting 2 07-05-2012 12:37 AM
db shutdown script allwin Shell Programming and Scripting 1 06-02-2012 03:10 AM
plink shutdown ollie01 AIX 6 03-17-2011 04:50 PM
Shutdown command x_adm AIX 3 06-17-2010 12:24 PM
Script to force Oracle database shutdown when shutdown immediate does not work aixhp UNIX for Dummies Questions & Answers 7 03-11-2010 01:04 PM
'shutdown' and 'cat' scottsiddharth UNIX for Dummies Questions & Answers 5 11-25-2008 11:27 PM
server is getting shutdown b_manu78 AIX 1 04-19-2007 06:03 PM
Shutdown script kingsto88 HP-UX 0 03-20-2007 08:43 PM
Shutdown aewpcoles UNIX for Advanced & Expert Users 6 08-03-2006 09:46 AM
True Shutdown help! 01000101 UNIX for Dummies Questions & Answers 3 05-15-2006 07:36 PM
to shutdown rajashekaran UNIX for Advanced & Expert Users 2 02-18-2002 12:42 PM