Operating System - HP-UX
1830865 Members
2468 Online
110017 Solutions
New Discussion

Re: need help!! my HP box cannot shutdown!!! urgent!!!

 
SOLVED
Go to solution
Bernard Chan
Occasional Advisor

need help!! my HP box cannot shutdown!!! urgent!!!

when i run the shutdown command it shows "User root not allowed to shutdown this system(Ace) --exiting shutdown". I have tried using sam to shutdown n the error are " UNEXPECTED EXIT: process ( trap "" 27 28 ; /usr/sbin/sync; cd /; /usr/sbin/shutdown -y -h 60 >/dev/console 2>/dev/null ) exited with a non-zero exit status "

any idea wats the cause??

i have to run init 0 to shutdown the system but thats not the appropriate..

my Hp box is B2600 running on HP-UX 11.0

I need help here....
9 REPLIES 9
Bernard Chan
Occasional Advisor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

btw, after fail to use sam to shutdown, it creates a core file , n the contents of the core file is " core file from "samx"-received SIGABRT"
Stefan Farrelly
Honored Contributor
Solution

Re: need help!! my HP box cannot shutdown!!! urgent!!!


does the file /etc/shutdown.allow exist ? if so it needs to either be 0 bytes (empty) or the user root added into it. This would give the error you got.
Im from Palmerston North, New Zealand, but somehow ended up in London...
harry d brown jr
Honored Contributor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

What does /etc/shutdown.allow have in it?

To shutdown your system manually, just stop your applications one at a time, then

sync;sync;reboot

live free or die
harry
Live Free or Die
Jean-Louis Phelix
Honored Contributor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

Hi,

Perhaps you've created a /etc/shutdown.allow file but forgot to include root in the users list. Add it or rename the file and fix later.

Regards.
It works for me (© Bill McNAMARA ...)
Bernard Chan
Occasional Advisor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

hi thanx for reply, my HP box dun have the file /etc/shutdown.allow .So wat should i do? plss help me as i need to solve this problem by today!! is weird that root cannot shutdown!!
Bernard Chan
Occasional Advisor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

Hi , thanx a million guys...i have solved my problem!!! now i can shutdown after i add the shutdown.allow files with +root in it....thanx for the help again!!! really appreciated!!
Bernard Chan
Occasional Advisor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

hi although i have solve my problem , i would like to know that how come later i added another user name in /etc/shutdown.allow but that user still unable to shutdown the system?? how to let another user besides root to shutdown the system?? thanx
Stefan Farrelly
Honored Contributor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

Theres a few rules to follow to allow non root users to do a shutdown. Its all listed in the man page for shutdown (man 1m shutdown). Take a look. eg.
1. name of system in .allow file must match that returned by gethostbyname (ie. nslookup)
2. must be in / before attempting shutdown
etc.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Chuck J
Valued Contributor

Re: need help!! my HP box cannot shutdown!!! urgent!!!

mm /etc/shutdown.allow files are at 0 bytes.

Maybe just try to re-touch the file:

# cp etc/shutdown.allow /etc/shutdown.allo.old
# touch /etc/shutdown.allow

then try to shutdown using root:

# shutdown -ry 0

Chuck J