- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "Shutdown User" Creation
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-24-2002 12:15 AM
09-24-2002 12:15 AM
"Shutdown User" Creation
I have a HPUX 11.00 running on B-2000 W/s.
I want to create a user, the moment he enter his user name and password in console (in CDE)
the system should shutdown automatically,
I tried putting the command "shutdown -hy 0" in $HOME/.profile as well as in $HOME/.dtprofile, but it didn't happen,
instead it is simply logging in to the system.
How this can be achieved?
Thanks in Advance,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 12:24 AM
09-24-2002 12:24 AM
Re: "Shutdown User" Creation
YOu can add the user name in the /etc/shutdown.allow
Then you can give a
shutdown -h -y 0 in the user's .profile file.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 12:43 AM
09-24-2002 12:43 AM
Re: "Shutdown User" Creation
I have created a user with UID "0", so anyhow I don't need to put him in /etc/shutdown.allow right?
with UID "0" and shutdown command in $HOME/.profile, it didn't work,
anyother soln..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 12:49 AM
09-24-2002 12:49 AM
Re: "Shutdown User" Creation
Shutdown command won't work from any mounted file system/directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 01:05 AM
09-24-2002 01:05 AM
Re: "Shutdown User" Creation
So I will make the user's home directory in / file system, for example, User name "halt",
will make it as /halt as a home directory.
If I put the command in shutdown in /halt/.profile, will it halt when I login from CDE with the user name halt?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 01:09 AM
09-24-2002 01:09 AM
Re: "Shutdown User" Creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 01:15 AM
09-24-2002 01:15 AM
Re: "Shutdown User" Creation
# grep shutdown /etc/passwd
shutdown_user:*:0:3:shuting down the system,,,:/:/usr/sbin/shutdown -hy 0
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 01:20 AM
09-24-2002 01:20 AM
Re: "Shutdown User" Creation
You can't issue shutdown command from mounted file system, it should be /
make the user(halt) home dir as /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 02:00 AM
09-24-2002 02:00 AM
Re: "Shutdown User" Creation
add the user to /etc/shutdown.allow
As Shell you can give him a script which he he has to execute!
xuser:*:999:999:User for Shutdown ,,:/home/xuser:/home/xuser/shutdown.sh