Problem
Need to temporarily allow access to user to run commands with sudo without typing password (for batch jobs)
Solution
Add following entry to /etc/sudoers to allow remoteuser to execute commands with sudo without entering password.
References
https://askubuntu.com/questions/334318/sudoers-file-enable-nopasswd-for-user-all-commands/340669
Need to temporarily allow access to user to run commands with sudo without typing password (for batch jobs)
Solution
Add following entry to /etc/sudoers to allow remoteuser to execute commands with sudo without entering password.
remoteuser ALL=(ALL) NOPASSWD:ALL
References
https://askubuntu.com/questions/334318/sudoers-file-enable-nopasswd-for-user-all-commands/340669
No comments:
Post a Comment