203
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