👤
Home Man
Search
Today's Posts
Register

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 .
Code:
## 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 6 Days Ago 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
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 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


All times are GMT -4. The time now is 08:11 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password