Difference between revisions of "Sudo"
Jump to navigation
Jump to search
(→Task) |
|||
Line 16: | Line 16: | ||
* <code>[[useradd]]</code> | * <code>[[useradd]]</code> | ||
+ | |||
+ | {{Linux Commands privileges}} | ||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Linux commands]] | [[Category:Linux commands]] |
Revision as of 11:10, 11 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]
- Understand order rules are applied and impact: https://vim.fandom.com/wiki/Set_Vim_as_your_default_editor_for_Unix
- Use Ansible to modify file for passwordless sudo execution in Ubuntu
See also
sudo
, id
, visudo
, useradd
, userdel
, usermod
, groups
, passwd
, chown
, chmod
, chgrp
, groupadd
, groupdel
, Passwordless sudo, passwd (package), sudo --help
Advertising: