In order to add the user to sudoers file please find the steps below:
Logged in as root run the visudo command:
When we type this command, we will be taken into a text
editor session with the file that defines sudo privileges pre-loaded. We will
have to add our user to this file to grant our desired access rights.
Save and close the file
Now, when you are logged in as your oracle user, you can
execute a certain command with root privileges by typing:
sudo "command"
No comments:
Post a Comment