- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: users with shutdown priviledge
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 02:45 AM
тАО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.
Tuan Nguyen
Solved! Go to Solution.
- Tags:
- shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 02:49 AM
тАО02-08-2005 02:49 AM
Re: users with shutdown priviledge
have a look at your shutdown.allow file.
Are root and the users defined? Or is the file empty?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 02:52 AM
тАО02-08-2005 02:52 AM
Re: users with shutdown priviledge
One of the above command is failing and that is causing a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 02:56 AM
тАО02-08-2005 02:56 AM
Re: users with shutdown priviledge
Thank you for your quick response.
The shutdown.allow has the hostname and the username.
Ex:
cam13 tuan
tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 02:59 AM
тАО02-08-2005 02:59 AM
Re: users with shutdown priviledge
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.
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 03:07 AM
тАО02-08-2005 03:07 AM
Re: users with shutdown priviledge
Just redirect error (2 > /tmp/error.log) This would give info on what is failing.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 03:59 AM
тАО02-08-2005 03:59 AM
Re: users with shutdown priviledge
I am able to run /usr/sbin/shutdown -y -r at the command line as user now. Thank you very much for your help. I really appreciate it.
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 04:09 AM
тАО02-08-2005 04:09 AM
Re: users with shutdown priviledge
You will have to remove 2>/dev/null
Anil