linux:sudo:sudoers:display_sudoers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:sudo:sudoers:display_sudoers [2023/07/17 19:53] – peter | linux:sudo:sudoers:display_sudoers [2023/07/17 19:56] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux - Sudo - Sudoers - Display Sudoers ====== | ====== Linux - Sudo - Sudoers - Display Sudoers ====== | ||
+ | |||
+ | <code bash> | ||
+ | sudo cat / | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | # | ||
+ | # This file MUST be edited with the ' | ||
+ | # | ||
+ | # Please consider adding local content in / | ||
+ | # directly modifying this file. | ||
+ | # | ||
+ | # See the man page for details on how to write a sudoers file. | ||
+ | # | ||
+ | Defaults env_reset | ||
+ | Defaults mail_badpass | ||
+ | Defaults secure_path="/ | ||
+ | Defaults use_pty | ||
+ | |||
+ | # This preserves proxy settings from user environments of root | ||
+ | # equivalent users (group sudo) | ||
+ | # | ||
+ | |||
+ | # This allows running arbitrary commands, but so does ALL, and it means | ||
+ | # different sudoers have their choice of editor respected. | ||
+ | # | ||
+ | |||
+ | # Completely harmless preservation of a user preference. | ||
+ | # | ||
+ | |||
+ | # While you shouldn' | ||
+ | # | ||
+ | |||
+ | # Per-user preferences; | ||
+ | # | ||
+ | |||
+ | # "sudo scp" or "sudo rsync" should be able to use your SSH agent. | ||
+ | # | ||
+ | |||
+ | # Ditto for GPG agent | ||
+ | # | ||
+ | |||
+ | # Host alias specification | ||
+ | |||
+ | # User alias specification | ||
+ | |||
+ | # Cmnd alias specification | ||
+ | |||
+ | # User privilege specification | ||
+ | root ALL=(ALL: | ||
+ | |||
+ | # Members of the admin group may gain root privileges | ||
+ | %admin ALL=(ALL) ALL | ||
+ | |||
+ | # Allow members of group sudo to execute any command | ||
+ | %sudo ALL=(ALL: | ||
+ | |||
+ | # See sudoers(5) for more information on " | ||
+ | |||
+ | @includedir / | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * This result is the default sudoers file before any changes. | ||
+ | </ | ||
linux/sudo/sudoers/display_sudoers.1689623610.txt.gz · Last modified: 2023/07/17 19:53 by peter