Todd C. Miller
bc88e5cbd3
Deprecate chroot support
2025-06-28 10:21:36 -06:00
Todd C. Miller
afd01d856b
Add SUDO_TTY environment variable if the user has a tty
...
This can be used to find the user's original tty device when sudo
runs the command in its own pty. GitHub issue #447 .
2025-06-07 16:21:36 -06:00
Todd C. Miller
9c98d0f4a5
Regenerate man format manuals
2025-04-28 12:26:52 -06:00
Todd C. Miller
cf1b87c71d
Sync sed scripts that add back troff conditionals.
...
The sudo manuals contain conditional to avoid describing system-specific
behavior on systems that don't support it. When we convert from
mdoc to man format we lose those conditionals, these sed scripts
add them back. Changes to the mdoc files can prevent the regexps
from matching so they need to be updated periodically.
2025-02-23 09:33:06 -07:00
Todd C. Miller
8feff96d37
regen
2025-02-10 08:42:09 -07:00
Todd C. Miller
516f72960a
If sudo is run without a tty via ssh, suggest using "ssh -t"
...
The current warning message mentions using sudo's -S option but
this will cause the password to be echoed without a terminal.
In most cases, the user just needs to run ssh with the -t option.
2024-12-20 18:02:52 -07:00
Todd C. Miller
74d64bc896
Sync BUGS section with the bugs section of README.md.
...
Also mention how to report security issues based on SECURITY.md.
GitHub issue #377 .
2024-05-28 19:54:52 -06:00
Todd C. Miller
58fec2f0c5
regen
2024-05-21 07:33:20 -06:00
Todd C. Miller
602a58e86a
Set SUDO_HOME to the invoking user's home directory.
...
GitHub issue #358
2024-03-08 09:15:36 -07:00
Todd C. Miller
6842dd1bfd
Document "sudo -ll command" output.
2023-08-09 10:57:16 -06:00
Todd C. Miller
afb09e0044
Sudo runs the command in a pty by default in 1.9.14 and above.
2023-06-18 08:08:32 -06:00
Todd C. Miller
0814749132
Use -width Ds for the options list, not -width Fl.
2023-01-16 08:29:39 -07:00
Todd C. Miller
a7e8a20d0d
Reduce the offset of bullet lists to 1n.
2023-01-16 08:15:46 -07:00
Todd C. Miller
95a6c04598
Document that -k does not interfere with sudo on other terminals.
...
This should help clarify the difference between "sudo -k" and "sudo -K".
2022-12-27 20:18:56 -07:00
Todd C. Miller
11aa808ef7
Use ".Sy root" instead of ".Em root" when talking about the root user.
...
Replace MANDOCPROG with "mandoc" now that MANDOCPROG has been removed.
2022-12-25 10:53:40 -07:00
Todd C. Miller
3040bf54c9
Mention the "list" privilege in the description of the -U option.
2022-12-20 09:18:46 -07:00
Todd C. Miller
eada918bbb
Add [arg ...] after command in SYNOPSIS and usage output.
...
Use Ar markup when referring to the command and args.
2022-12-20 09:09:25 -07:00
Todd C. Miller
c184a241a2
Mention the audit plugin in the "Process model" section.
...
Remove extraneous information describing how sudo may exec the
command directly, this is already included in the non-pty section.
2022-12-12 16:35:00 -07:00
Todd C. Miller
c341608072
Remove most uses of the deprecated Li macro which has no effect.
...
Also fix some other incorrect markup.
2022-09-13 19:56:45 -06:00
Todd C. Miller
556dacf1ff
Add a way to run a command without updating the cached credentials.
...
This can also be used to test for whether or not the user's
credentials are currently cached.
2022-08-02 14:28:28 -06:00
Todd C. Miller
9f5615e5b1
Avoid using "note that" and "note: " in documentation.
2022-02-16 16:38:44 -07:00
Todd C. Miller
9175954895
Remove "please" from the documentation, it is considered bad style.
2022-02-16 12:33:32 -07:00
Todd C. Miller
9f695f0fcc
Restrict "sudo -U other -l" to users with sudo ALL for root or "other".
...
Having "sudo ALL" permissions in no longer sufficient to be able to
list another user's privileges. The invoking user must now have
"sudo ALL" for root or the target user.
GitHub issue #134
2022-02-14 13:09:55 -07:00
Todd C. Miller
0bbe4b1813
Substitute paths set by configure in examples. Bug #1023
2022-02-11 19:07:08 -07:00
Todd C. Miller
3b6f620e3e
Update links to sudo web site and reference markdown docs.
2022-02-10 13:15:39 -07:00
Todd C. Miller
7b5f0dfaf7
Use a 4n indent for code blocks instead of the default 6n.
2022-02-10 13:05:34 -07:00
Todd C. Miller
5f45fd907b
Document how commands are passed to the shell for the -i and -s options.
...
The concatenation of command and arguments and escaping of special
characters was not documented.
Text adapted from GitHub issue #121 from Kris Rinzwind
2022-01-20 14:05:00 -07:00
Todd C. Miller
e4ee1a8502
Replace uid and gid with user-ID and group-ID in more places.
2022-01-20 10:08:34 -07:00
Todd C. Miller
78e74c605e
Document the error message when no_new_privs is set.
2022-01-19 18:53:03 -07:00
Todd C. Miller
0d0e7de454
Use the Oxford comma consistently, it is helpful in technical documents.
2022-01-19 18:41:23 -07:00
Todd C. Miller
e66e1ca383
In SECURITY NOTES, clarify that PATH may be overridden by the policy.
...
Bug #1014
2021-12-11 09:08:03 -07:00
Todd C. Miller
289a045a4f
Rename "doc" directory to "docs" for better GitHub compatibility.
2021-11-10 16:45:16 -07:00