- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Create user with option can shutdown HP-UX onl...
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
04-03-2009 04:07 AM
04-03-2009 04:07 AM
Create user with option can shutdown HP-UX only
- Tags:
- shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 04:26 AM
04-03-2009 04:26 AM
Re: Create user with option can shutdown HP-UX only
it is good for you. put user you want him/her to allow to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 04:31 AM
04-03-2009 04:31 AM
Re: Create user with option can shutdown HP-UX only
yes insert '+
You have to add root too, then ('+ root')
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 04:45 AM
04-03-2009 04:45 AM
Re: Create user with option can shutdown HP-UX only
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 05:00 AM
04-03-2009 05:00 AM
Re: Create user with option can shutdown HP-UX only
well, for my ws with 11.11, that's my experience.
As soon as you add one non-root user to /etc/shutdown.allow you're no longer allowed to shutdown as root.
So just add a second line.
This is my /etc/shutdown.allow:
+ stop
+ root
Just two lines ...
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 05:09 AM
04-03-2009 05:09 AM
Re: Create user with option can shutdown HP-UX only
Thanks for your advise.
Refer to your advise :
This is my /etc/shutdown.allow:
+ stop
+ root
what it mean + stop? this stop is username? I refer to your replied before, insert '+
Mardi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 05:11 AM
04-03-2009 05:11 AM
Re: Create user with option can shutdown HP-UX only
Sorry, was not clear enough from my side.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 05:16 AM
04-03-2009 05:16 AM
Re: Create user with option can shutdown HP-UX only
Why i wan my staff to be able to shutdown as I most of time have to go outstation and want them to be able shutdown the machine but at the same time restrict them to perform job as administrator.
I will inform you when I try on next Monday(April, 6th 2009).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2009 05:36 AM
04-03-2009 05:36 AM
Re: Create user with option can shutdown HP-UX only
But I don't tell them the command, they just have to login as user 'stop'.
In his profile is the shutdown-command, so the ws is shutting down immediatelly.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 08:21 PM
04-05-2009 08:21 PM
Re: Create user with option can shutdown HP-UX only
I already edited my shutdown.allow and add 2 line like below:
+ rose
+ root
and saved it. When i login using username rose and try to shutdown using this command:
shutdown -ry 0
this appear:
sh: shutdown: not found.
Can advise me.
Mardi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 08:44 PM
04-05-2009 08:44 PM
Re: Create user with option can shutdown HP-UX only
If rose isn't a root user, she needs to use absolute paths to shutdown:
/sbin/shutdown -ry 0
The man page mentions the path:
http://docs.hp.com/en/B2355-60130/shutdown.1M.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 08:59 PM
04-05-2009 08:59 PM
Re: Create user with option can shutdown HP-UX only
I try like this:
Login as rose. then cd to /sbin then from that directory I can execute the shutdown -ry 0.
Is there a way i can modify so the user(in this example, rose) no need to change directory before execute the shutdwon command? Like what root can do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 09:04 PM
04-05-2009 09:04 PM
Re: Create user with option can shutdown HP-UX only
>>Is there a way i can modify so the user(in this example, rose) no need to change directory before execute the shutdwon command? Like what root can do.
Just modify rose's .profile and add this line
PATH=$PATH:/sbin
export $PATH
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 09:20 PM
04-05-2009 09:20 PM
Re: Create user with option can shutdown HP-UX only
If your home directory isn't on the root volume, you'll have to cd anyway.
>Is there a way I can modify so the user no need to change directory before execute the shutdown command?
You can update PATH as Suraj said. But you shouldn't be using that command that often to really save that much over using the absolute path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 09:26 PM
04-05-2009 09:26 PM
Re: Create user with option can shutdown HP-UX only
I think with add user in shutdown.allow is enough for the user to shutdown the after cd to /sbin.
I will try it at real server after office hour and let u all know tommorow.
Mardi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2009 11:00 PM
04-05-2009 11:00 PM
Re: Create user with option can shutdown HP-UX only
Please assign some points who give there valuable time for your problem.
To know how to assign points please go through the below link.
http://forums13.itrc.hp.com/service/forums/helptips.do?#33
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2013 10:42 PM
03-15-2013 10:42 PM
Re: Create user with option can shutdown HP-UX only
Suppose two hosts mumbe1 and mumbe2... and now I want on that user "ASHISH" can shutdown the both the hosts.
So what will be the steps...
1 vi /etc/shutdown.allow
2 + ASHISH mumbe1 mumbe2
3 wq!
so is these steps are ok ... or if there are any changes please revert me back as soon as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2013 10:52 PM
03-15-2013 10:52 PM
Re: Create user with option can shutdown HP-UX only
>Suppose two hosts mumbe1 and mumbe2
Then you need to have:
+ root
mumbe1 ASHISH
mumbe2 ASHISH
Note: This file must be present on both systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2013 11:10 PM
03-15-2013 11:10 PM
How to restrict FTP users
Can give you details about how to restrict certain FTP users .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2013 11:12 PM - edited 03-15-2013 11:16 PM
03-15-2013 11:12 PM - edited 03-15-2013 11:16 PM
Re: How to restrict FTP users
See the manpages for ftpaccess(4) and ftphosts(4).
- Tags:
- ftpaccess