Unix/Linux Go Back    


Red Hat 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

Red Hat


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-11-2012   -   Original Discussion by Vaibhav.T
Vaibhav.T's Unix or Linux Image
Vaibhav.T Vaibhav.T is offline
Registered User
 
Join Date: Dec 2011
Last Activity: 29 July 2013, 1:20 PM EDT
Posts: 28
Thanks: 6
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old Unix and Linux 03-11-2012   -   Original Discussion by Vaibhav.T
codemaniac's Unix or Linux Image
codemaniac codemaniac is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 15 August 2016, 4:00 PM EDT
Location: /home/arijit
Posts: 120
Thanks: 3
Thanked 24 Times in 24 Posts
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)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script is not working from cron while working manually anuragpgtgerman Shell Programming and Scripting 3 01-23-2012 01:54 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
aix shutdown automatically Vanit AIX 8 12-24-2009 03:19 AM
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 05:37 AM.