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

Related posts

How to change SSH Default Port in CentOS 8

The SnapAPI kernel module is not loaded for the kernel

Hướng dẫn mount ổ đĩa 4TB vào máy chủ Linux