- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: create user able to shutdown the system
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
Forums
Discussions
Discussions
Discussions
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
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
01-31-2007 05:09 AM
01-31-2007 05:09 AM
i need to create a user on a HP-UX system that has the capability to shutdown the system automatically when it log in ,
how can i create this user ?
thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 05:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 05:16 AM
01-31-2007 05:16 AM
Re: create user able to shutdown the system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 05:16 AM
01-31-2007 05:16 AM
Re: create user able to shutdown the system
To add to Melvyn's response, you can replace the user's default shell in '/etc/passwd' with '/sbin/shutdown'. Then, when the user logs in, the shutdown command is run.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 07:47 PM
01-31-2007 07:47 PM
Re: create user able to shutdown the system
we once had such a user to allow the Worstation useres to shutdown their workstations.
The user named stop was a normal user, belonging to the group users. It was configured in /etc/shutdown.allow, which is necessary as mentioned above.
Also this user had his own homedirectory where the .profile did the shutdown. We did not use the /etc/shutdown as shell as the script .profile gave us the opportunity to do some extra stuff befor shutting down the system.
But take care if you use a script like we did. This is a potential security whole.
Hope this helps
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 10:04 PM
01-31-2007 10:04 PM
Re: create user able to shutdown the system
we changed shell-login to csh and added this at the end of the .login file:
cd /
/etc/shutdown -hy 0
logout
HTh
Volkmar