Home Man
Today's Posts

Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

shutdown.allow not working

Login 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..
The Following User Says Thank You to codemaniac For This Useful Post:
Vaibhav.T (03-11-2012)
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
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
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
Server Shutdown manoj.solaris AIX 3 01-07-2011 10:49 AM
Shutdown Script runnerpaul Shell Programming and Scripting 4 12-07-2010 06:17 AM
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
Shutdown aewpcoles UNIX for Advanced & Expert Users 6 08-03-2006 09:46 AM
to shutdown rajashekaran UNIX for Advanced & Expert Users 2 02-18-2002 12:42 PM

All times are GMT -4. The time now is 03:04 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password