Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rh124_sudo [2026/10/23 10:12] – [Very abbreviated /etc/sudoers] rpjday | rh124_sudo [2026/10/30 12:09] (current) – [Links] rpjday | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| //" | //" | ||
| + | ===== Links ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[www.geeksforgeeks.org/ | ||
| + | * [[https:// | ||
| ===== The " | ===== The " | ||
| All members of the '' | All members of the '' | ||
| - | ===== Very abbreviated /etc/sudoers ===== | + | ===== Using the same sudoers |
| - | You can use the same ''/ | + | You can use the same ''/ |
| + | |||
| + | ===== General format of sudoers line ===== | ||
| + | |||
| + | < | ||
| + | username hostname = (run_as_user: | ||
| + | </ | ||
| + | |||
| + | Examples: | ||
| + | |||
| + | < | ||
| + | username ALL=(ALL: | ||
| + | username ALL=(ALL) ALL | ||
| + | %groupname ALL=(ALL) NOPASSWD: ALL | ||
| + | %groupname ALL=(ALL) NOPASSWD: / | ||
| + | %groupname host1, | ||
| + | username host_alias=(ALL) ALL | ||
| + | </ | ||
| + | |||
| + | ===== Very abbreviated / | ||
| Note much of this file is commented out. | Note much of this file is commented out. | ||
| Line 100: | Line 124: | ||
| ==== Option 1 ==== | ==== Option 1 ==== | ||
| - | Add all class accounts to the '' | + | Add all class accounts to the '' |
| ==== Option 2 ==== | ==== Option 2 ==== | ||
| Line 109: | Line 133: | ||
| %class ALL=(ALL) ALL | %class ALL=(ALL) ALL | ||
| %class ALL=(ALL) NOPASSWD: ALL | %class ALL=(ALL) NOPASSWD: ALL | ||
| + | </ | ||
| + | |||
| + | ===== How to examine your own sudo capabilities ===== | ||
| + | |||
| + | < | ||
| + | $ sudo -l | ||
| </ | </ | ||