Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## create a sudoers file
- [opc@inst-v3aqc-instance-pool4ml3doz8p2wlcqekw2 ~]$echo "ocarun ALL=(ALL) NOPASSWD:ALL" > ./101-oracle-cloud-agent-run-command
- ## verify it
- [opc@inst-v3aqc-instance-pool4ml3doz8p2wlcqekw2 ~]$ visudo -cf ./101-oracle-cloud-agent-run-command
- ./101-oracle-cloud-agent-run-command: parsed OK
- ## add the configuration
- [opc@inst-v3aqc-instance-pool4ml3doz8p2wlcqekw2 ~]$ sudo cp ./101-oracle-cloud-agent-run-command /etc/sudoers.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement