02-08-2005 02:45 AM
I am setting NIS users up with shutdown priviledges, however, when user executes SAM and selects shutdown, the system gives this error message:
Unexpected Exit: process ( trap "" 27 28; /usr/sbin/sync; cd /; /usr/sbin/shutdown -y -r 60 > /dev/console 2> /dev/null) exited with a non-zero exit status
The system could not be rebooted because of the following reason: The command "(trap "" 27 28; /usr/sbin/sync; cd /; /usr/sbin/shutdown -y -r 60> /dev/console 2>/dev/null)" failed.
How do I fix this?
Thank you very much for your help.
Solved! Go to Solution.
02-08-2005 02:52 AM
One of the above command is failing and that is causing a problem.
02-08-2005 02:59 AM
Thank you for your quick response.
Do I need to execute these command manually and see why they failed? All these commands are for root only, I don not know if I can exexute them as user.
02-08-2005 03:07 AM
Just redirect error (2 > /tmp/error.log) This would give info on what is failing.
02-08-2005 04:09 AM
You will have to remove 2>/dev/null