Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- Re: settinf sudo commands ??
System Administration
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Go to solution
Topic Options
- 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
- Email to a Friend
- Report Inappropriate Content
06-02-2009 05:32 AM
06-02-2009 05:32 AM
I've had a request from our DBA's to setup about 12 different Oracle commands in sudo so they can run them from the oracle Admin account....
All of these commands are in the same directory: /opt/oracle/crs/bin and the commands are: ocrconfig, ocrconfig.bin, crsctl, crsctl.bin, ocrdump, ocrdump.bin, crsd, crsd.bin, oifcfg, and oifcfg.bin
Is there a way to set these up as one Cmnd_Alias instead of having 10 different ones for each command ??
All of these commands are in the same directory: /opt/oracle/crs/bin and the commands are: ocrconfig, ocrconfig.bin, crsctl, crsctl.bin, ocrdump, ocrdump.bin, crsd, crsd.bin, oifcfg, and oifcfg.bin
Is there a way to set these up as one Cmnd_Alias instead of having 10 different ones for each command ??
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-02-2009 05:43 AM
06-02-2009 05:43 AM
Solution
If you specify the directory itself, all this commands can be executed with sudo, for example:
Cmnd_Alias ORACLE_BIN=/opt/oracle/crs/bin/
The last slash is important.
You can also specify just one Cmnd_Alias listing the commands separated by "," for example:
Cmnd_Alias ORACLE_BIN=/opt/oracle/crs/bin/crsctl,/opt/oracle/crs/bin/ocrconfig
Cmnd_Alias ORACLE_BIN=/opt/oracle/crs/bin/
The last slash is important.
You can also specify just one Cmnd_Alias listing the commands separated by "," for example:
Cmnd_Alias ORACLE_BIN=/opt/oracle/crs/bin/crsctl,/opt/oracle/crs/bin/ocrconfig
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-02-2009 06:08 AM
06-02-2009 06:08 AM
Re: settinf sudo commands ??
Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP