- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to create a sudo ID
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
12-19-2005 06:55 AM
12-19-2005 06:55 AM
I need to create a sudo ID that will enable the one user (user name : oracle) to shutdown and startup the server.
That user (oracle) will need root level access for this, but I do not want to give them the root password and I will want this sudo account.
Please suggest what to do.?
Thanks Bunty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:01 AM
12-19-2005 07:01 AM
Re: Need to create a sudo ID
oracle ALL=/usr/sbin/shutdown -h -y g0
Doing a shutdown with reboot and a shutdown with halt
Nothing needed for startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:18 AM
12-19-2005 07:18 AM
Re: Need to create a sudo ID
Create the lines as Rick suggested in your sudoers file.
But just curious, why should a DBA reboot the server?
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:22 AM
12-19-2005 07:22 AM
Re: Need to create a sudo ID
I will be on vacation and during this period, they need to reboot the server.
so I want to create a sudo file.
how will i create this file for oracle user.
if oracle user gives this command from his prompt:
$oracle ALL=/usr/sbin/shutdown -h -y g0
will it shutdown the server,
how i will create a sudo file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:26 AM
12-19-2005 07:26 AM
Re: Need to create a sudo ID
Add the user name to the /etc/shutdown.allow file. This will allow the specified user to use the shutdown command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:26 AM
12-19-2005 07:26 AM
Re: Need to create a sudo ID
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:26 AM
12-19-2005 07:26 AM
Re: Need to create a sudo ID
If the shutdown -h -y g0 is used, this will halt the system. Can cycle the power to power up. Other option is to go into GSP or EFI and do a RS (reset) of the system - this way the disk drives do not power cycle and will continue to spin.
The shutdown -r -y g0 will reboot the box. Generally no interaction in required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:51 AM
12-19-2005 07:51 AM
Re: Need to create a sudo ID
we need to add a new CPU so we need to shutdown the server and after completion of this activity, we will need to boot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:19 AM
12-19-2005 08:19 AM
Re: Need to create a sudo ID
is it sufficient to add the user name in /etc/shutdown.allow?
or i have to do something more?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:21 AM
12-19-2005 08:21 AM
Re: Need to create a sudo ID
Jeff Traigle