Sudo permission to the User in Oracle Linux

Assign Sudo privileges to the user in Oracle Linux

Login with the root user and open the sudoers file

$ vi /etc/sudoers 

OR

$ visudo

Then go to the session and add user oracle as shown below or you choose your username:

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
oracle ALL=(ALL)        ALL

You can also add entry of your user without password prompt as:

## Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL
oracle ALL=(ALL) NOPASSWD: ALL

Save the file and your user is added as sudo group. you can run your command using sudo with user in Oracle Linux

This entry was posted in Oracle on by .
Unknown's avatar

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

Leave a Reply