- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- automatic system shutdown with user logon
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
09-09-2002 09:18 AM
09-09-2002 09:18 AM
automatic system shutdown with user logon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 09:34 AM
09-09-2002 09:34 AM
Re: automatic system shutdown with user logon
Create the user of your choice. This can be done however you wish -- via SAM or with 'useradd' [see the man pages for the same].
In place of the user's shell (the seventh field of '/etc/passwd', specify:
/sbin/shutdown -ry 0
Then, in '/etc/shutdown.allow' add the user name as:
myhostname user_who_can_shutdown
Be sure to have the entry:
myhostname root
...in the '/etc/shutdown.allow' file too!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 09:35 AM
09-09-2002 09:35 AM
Re: automatic system shutdown with user logon
You can put the shutdown command on the /etc/passwd file against that user also, so that as soon as the user logs in, it will execute the shudown command.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 09:39 AM
09-09-2002 09:39 AM
Re: automatic system shutdown with user logon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2002 12:20 AM
09-10-2002 12:20 AM
Re: automatic system shutdown with user logon
'/sbin/shutdown -ry 0' will re-boot the machine.
'/sbin/shutdown -hy 0' will halt the machine after shutting it.
You may want to set up two users, one for each.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 04:58 AM
09-11-2002 04:58 AM
Re: automatic system shutdown with user logon
I've got the solution.
1.create a user using any of sam , useradd,vi /etc/passwd ensuring that the shell is /sbin/shutdown,if using useradd: specify -s /shell/shutdown.
2. edit .profile of that user created and include /sbin/shutdown as part of PATH:,specifically replace /sbin with that.
then below the PATH:.... line,type: /sbin/shutdown -hy 0
3. Save your work with either: wq or x!
logon as that user.it worked for me.
Thanks for all your assistant.
Regards.
Nsikan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 05:06 AM
09-11-2002 05:06 AM
Re: automatic system shutdown with user logon
;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 05:17 AM
09-11-2002 05:17 AM
Re: automatic system shutdown with user logon
I wonder if that user did get a change passwd every few hours?
It pays not to upset your sysadmin !!!!!
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 08:22 AM
09-11-2002 08:22 AM
Re: automatic system shutdown with user logon
It's for security issues.
U can create a user only to be shuting down your system.This will prevent from doing anything.
Rgds.
Nsikan.