shutdown.allow not working

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat shutdown.allow not working
# 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 03:21 AM..
This User Gave Thanks to codemaniac For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies

2. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

3. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

4. Shell Programming and Scripting

Script sh for shutdown

Hi, i need shutdown a pc, is in the same network what command i can use in the script :o ? (1 Reply)
Discussion started by: Dymblos
1 Replies

5. UNIX for Dummies Questions & Answers

A script for shutdown

I want to make a script to shutdown a unixware computer from other user then root. In Sco version i use "as root" but in the unixware i don't know. Please help me. 10x (12 Replies)
Discussion started by: kelu
12 Replies

6. UNIX for Advanced & Expert Users

Shutdown

Firstly uname -a = UnixWare companyname 5 7.1.4 i386 x86at SCO UNIX_SVR5 Server is an HP Proliant ML350 G4 Tower Right, now to the problem. We frequently have power outtages and lightning strikes here due to our location in a VERY rural part of the UK. As such, I need to be able to remotely... (6 Replies)
Discussion started by: aewpcoles
6 Replies

7. UNIX for Dummies Questions & Answers

True Shutdown help!

ok, i know the syntax that goes along with the Shutdown command... but my box never wants to ... well... shutdown.. it only halts, kills all the process's, stalls the comp to a complete stop, but does actually kill the monitor and/or shut off the physical computer. it will reboot properly though,... (3 Replies)
Discussion started by: 01000101
3 Replies

8. UNIX for Dummies Questions & Answers

How do you shutdown from login?

Hello all - On some of the systems we use - AlphaServer es40 Tru64 digital unix - you can login with the username: shutdown - with no password - and it shuts down the system gracefully. I've tried to trace what's going on in the system, but to no avail. I've been searching the web, but... (1 Reply)
Discussion started by: kapolani
1 Replies

9. Filesystems, Disks and Memory

Not properly shutdown

Last night my sister was on the computer and she shut it down by just pressing the power button:mad:.I heard it was never good to shutdown a unix system from the power button(I always do the shutdown -h now), how do I know if the filesystem has been damaged or something like that?:confused: (5 Replies)
Discussion started by: DISTURBED
5 Replies

10. UNIX for Advanced & Expert Users

to shutdown

Hai Could somebody tell me the solution to my problem. the question is as follows there is one unix server and 100 dummy terminals connected to my server, i want to shutdown client system if some of the client forgetten to power down their system. plez provide me the code for that. (2 Replies)
Discussion started by: rajashekaran
2 Replies
Login or Register to Ask a Question