- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: shutdown my hpux with another user
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
06-10-2006 04:28 AM
06-10-2006 04:28 AM
I have a rx4640 itanium server with hpux 11.23 OS installed.
I want do shutdown to my server with another user that is not root, how i can do this?, what rights my new user need?
I don´t want change the id the new user to 0.
Please help,
Thanks,
David
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2006 05:29 AM
06-10-2006 05:29 AM
Re: shutdown my hpux with another user
the format of that file is:
system name username
-----------------
hpux11i operator
hpux11i user_abcd
* user_efg
------------------
an asterisk in the system name allows specified users from "any system" to execute the shutdown command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2006 09:25 PM
06-10-2006 09:25 PM
SolutionBy default, only the superuser can run shutdown. You can designate other users to run shutdown by listing their user names in the /etc/shutdown.allow file. Do not forget
to add root to the list of users!
See the shutdown(1M) man page for details.
If you want to set it up so that when a specific user signs on, the system automatically shuts down, do the following:
1. Create the user through sam.
2. Edit shutdown.allow file to allow shutdown access to the user.
3. Add the shutdown command in the user's .profile file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2006 12:52 AM
06-11-2006 12:52 AM
Re: shutdown my hpux with another user
this command can have serious consequences and is therefore to be used
with caution. It is not a command that everyone should be able to use.
Permission to shut down the system is normally reserved for superusers only. However, there is a mechanism that you can use to assign permission to other users so that they can shut down the system should
the need arise when a superuser is not around. The /etc/shutdown.allow file enables superusers to specify who has
permission to shut down the system in their absence. For details, see the shutdown (1M) manpage.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 01:20 AM
06-12-2006 01:20 AM
Re: shutdown my hpux with another user
is your problem solved? No points are given ...
Note: you have to add root to the file shutdown.allow then, if you want to shutdown with root, too.
Also, you can create an user 'stop' for example and put in his .login file:
cd /
/etc/shutdown -hy 0
logout
So if you login as stop the ws is shutting down.
HTH
Volkmar
P.S.
You has assigned points to 9 of 26 responses to your questions.
You should give a feedback if a reply has solved your problem. This helps us (if you need more informations) and other users who search a solution for the same problem.
See also:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2006 02:14 AM
06-12-2006 02:14 AM
Re: shutdown my hpux with another user
2. vi /etc/shutdown.allow and add the user.
Cheers,
f.halili