shutdown.allow not working

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 03:21 AM..
This User Gave Thanks to codemaniac For This Post:
Vaibhav.T (03-11-2012)

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 08:45 PM
Working web service call not working with curl abigbear Shell Programming and Scripting 3 08-13-2017 04:02 PM
Automating pbrun /bin/su not working, whenever manually it is working using putty jorgejac Shell Programming and Scripting 14 12-03-2015 02:32 PM
Nslookup working but ping not working at windows client boby.kumar Red Hat 5 02-28-2014 07:27 AM
Can't shutdown the computer mi117 UNIX for Dummies Questions & Answers 6 01-23-2013 05:47 PM
Script not working in cron but working fine manually jasperux Shell Programming and Scripting 2 07-05-2012 01:37 AM
Server Shutdown manoj.solaris AIX 3 01-07-2011 11:49 AM
Script to force Oracle database shutdown when shutdown immediate does not work aixhp UNIX for Dummies Questions & Answers 7 03-11-2010 02:04 PM
Script sh for shutdown Dymblos Shell Programming and Scripting 1 11-12-2009 03:24 PM
Shutdown script kingsto88 HP-UX 0 03-20-2007 09:43 PM
A script for shutdown kelu UNIX for Dummies Questions & Answers 12 08-23-2006 10:09 PM
Shutdown aewpcoles UNIX for Advanced & Expert Users 6 08-03-2006 10:46 AM
True Shutdown help! 01000101 UNIX for Dummies Questions & Answers 3 05-15-2006 08:36 PM
Shutdown Scripts zheng_soon Shell Programming and Scripting 4 07-09-2003 01:53 AM
to shutdown rajashekaran UNIX for Advanced & Expert Users 2 02-18-2002 01:42 PM