- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reboot for a normal user.
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
09-29-2003 10:27 PM
09-29-2003 10:27 PM
Can a normal user run command reboot without to use sudo or other similar tool? I want run the command reboot, and not "shutdown -r".
Thanks and regards,
Manuel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 10:33 PM
09-29-2003 10:33 PM
SolutionFirst, no, a normal user cannot run reboot. There is no "allow" facility as there is for shutdown.
Second, this sounds rather dangerous to me. Reboot, does not go through the normal shutdown script process, does not shutdown databases or terminate other services - it just halts the system, quick and dirty. This is not something that should be done on a normal basis. I would think you would want to put the user into a /etc/shutdown.allow file and allow them to issue a nice, normal, safe shutdown command.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 10:36 PM
09-29-2003 10:36 PM
Re: Reboot for a normal user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 10:40 PM
09-29-2003 10:40 PM
Re: Reboot for a normal user.
Reboot cannot be run by normal users - this is a safety/security feature. Shutdown can be run by non-root users; see the man page for info on the shutdown.allow file. Please reconsider your use of reboot - it's not the nicest way to achieve your aim. Compare the man pages of reboot(1m) and shutdown(1m) to see the benefits of using shutdown.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 10:44 PM
09-29-2003 10:44 PM
Re: Reboot for a normal user.
I agree with Pete on the fact that a normal user should not be able to use the shutdown command, but it is possible. Take a look at the man page for shutdown and specific to the file /etc/shutdown.allow.
# man 1m shutdown
Hope it helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2003 12:19 AM
09-30-2003 12:19 AM
Re: Reboot for a normal user.
live free or die
harry