sventhan
asked on
Grant sudo access to Oracle user for the named user account
Experts -
I've a AIX ver 6.
How can I give the named user account to access oracle user account using SUDO?
Currently I'm getting this error when using sudo.
$ sudo su - oracle
Password:
sve is not in the sudoers file. This incident will be reported.
Thanks,
Sve
I've a AIX ver 6.
How can I give the named user account to access oracle user account using SUDO?
Currently I'm getting this error when using sudo.
$ sudo su - oracle
Password:
sve is not in the sudoers file. This incident will be reported.
Thanks,
Sve
ASKER
Thanks John.
How can I add an entry to this sudoers file?
How can I add an entry to this sudoers file?
ASKER
I'm getting this error now
Sorry, user sve is not allowed to execute '/usr/bin/su - oracle' as root on servername
Sorry, user sve is not allowed to execute '/usr/bin/su - oracle' as root on servername
It is a plain text file. You just need to edit it. You need root access to edit it though so it is typically something that you need to request from your system administrators.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks it works now...
Once that is done, you should be allowed to run the command. However, you are running it incorrectly. You should not be issuing the su command. You should be doing something like this:
sudo -u oracle cmd
Where cmd is the command you want to run as the oracle user.