Difference between revisions of "Sudo"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 +
{{lowercase}}
 
<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.
 
<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.
 
* Man page: https://man7.org/linux/man-pages/man8/sudo.8.html
 
* Man page: https://man7.org/linux/man-pages/man8/sudo.8.html

Revision as of 15:22, 17 January 2022

sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user.

Examples

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]

Security vulnerabilities

Exploitable if the following configuration is present:

username hostname = (ALL, !root) path-to-command

Errors

sudo: unable to resolve host
See: resolv.conf
[sudo] password for USERNAME:
USERNAME is not in the sudoers file.  This incident will be reported.

Options

Related terms

See also

  • https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password
  • Advertising: