Difference between revisions of "Sudo"
Jump to navigation
Jump to search
↑ https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password
Line 1: | Line 1: | ||
− | [[wikipedia:sudo|sudo]] is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user. | + | <code>[[wikipedia:sudo|sudo]]</code> is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user. |
* Add user to sudo group: <code>sudo [[usermod]] '''-a'''G sudo YOUR_USERNAME</code> | * Add user to sudo group: <code>sudo [[usermod]] '''-a'''G sudo YOUR_USERNAME</code> |
Revision as of 17:21, 8 December 2019
sudo
is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user.
- Add user to sudo group:
sudo usermod -aG sudo YOUR_USERNAME
Task
- Allow user YOUR_USER_NAME to run sudo commands without typing the password:
Include in /etc/sudoers
, using the visudo
command, the following line at the end of the file:
YOUR_USER_NAME ALL=(ALL) NOPASSWD:ALL
[1]
- Use Ansible to modify file for /passwordless sudo/ execution in Ubuntu
See also
Advertising: