- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Sudo Question
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
тАО03-25-2010 10:51 AM
тАО03-25-2010 10:51 AM
Can some one advice if we can implement this using sudo, i-e, grant some one priveleges of the oracle user to start and stop the application scripts.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2010 10:57 AM
тАО03-25-2010 10:57 AM
Re: Sudo Question
Cmnd_Alias APP = /apps/scripts/app_control.ksh
oracle server1=(appuser1,appuser2) NOPASSWD:APP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2010 11:04 AM
тАО03-25-2010 11:04 AM
Re: Sudo Question
Is that possible to grant some one to launch the startup and shutdown scripts as oracle (just these scripts launching as oracle and not any other thing as oracle) using sudo.
If you can provide more details and steps, I would really appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2010 11:12 AM
тАО03-25-2010 11:12 AM
Re: Sudo Question
you can create a command alias with a list of commands that can be executed.
Cmnd_Alias APP_SHUTDOWN = /path/to/script1, /path/to/script2
then
give oracle permission to execute it as the application user appuser1
oracle localhost=(appuser1) NOPASSWD:APP_SHUTDOWN
or skip the cmnd_alias
oracle localhost=(appuser1) NOPASSWD:/path/to/script
then logged in as oracle
sudo -u appuser1 /path/to/script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2010 11:30 AM
тАО03-25-2010 11:30 AM
Re: Sudo Question
The user name is user1.
The user logs in to the system as user1.
Can he run some scripts as oracle user using sudo. The script needs to be run as oracle and not as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2010 11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2010 01:57 PM
тАО03-25-2010 01:57 PM
Re: Sudo Question
$ sudo -u oracle /path/to/script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2010 12:46 AM
тАО03-30-2010 12:46 AM
Re: Sudo Question
Just FYI..
sudo su - oracle
#Login as oracle and do whatever you want :)