- 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
Discussions
Discussions
Forums
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
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-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
- « Previous
-
- 1
- 2
- Next »