2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

197 Commits

Author SHA1 Message Date
Todd C. Miller
7a6ee32a93 Deprecate chroot support 2025-06-28 10:32:09 -06:00
Todd C. Miller
e6cf241b03 No more mercurial repo, point to git.sudo.ws instead. 2025-06-12 11:16:10 -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
b876e3bbf3 Sync "Path intercept" comment with default sudo.conf and man page 2025-04-28 12:25:43 -06:00
peppapig450
d173674c2f Fix typo and update Protocol Buffers URL in sudo_logsrv.proto man page
- Remove duplicate "The" in description of log_id field.
- Update outdated Protocol Buffers link from https://developers.google.com/protocol-buffers/ to https://protobuf.dev, the new canonical URL.

Signed-off-by: peppapig450 <peppapig450@pm.me>
2025-04-28 12:12:06 -06:00
peppapig450
334e23183d Fix minor grammar errors in sudoers.ldap man page
Signed-off-by: peppapig450 <peppapig450@pm.me>
2025-04-28 12:12:06 -06:00
peppapig450
aa5d4b2b40 Fix typo: 'Please not report' → 'Please do not report' in documentation
Signed-off-by: peppapig450 <peppapig450@pm.me>
2025-04-28 12:12:06 -06:00
peppapig450
2f4d6bfe25 Fix minor grammar and spelling issues in sudo.conf man page
Signed-off-by: peppapig450 <peppapig450@pm.me>
2025-04-28 12:12:06 -06:00
Todd C. Miller
ff3c2185f1 Dash/hyphen related style fixes from check_man. 2025-02-27 19:37:48 -07:00
Todd C. Miller
c2e77b7133 Add check_man script to check for man page warnings. 2025-02-27 08:21:22 -07:00
Todd C. Miller
38c0bdd7ad Sync sudo.DEBUG descriptions with comments in sudo_debug.h. 2025-02-26 19:12:23 -07: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
4d331e6026 Fix some style warnings from "mandoc -Tlint" 2025-02-22 15:41:22 -07:00
Todd C. Miller
3ba525a348 Style fixes from Bjarni Ingi Gislason. 2025-02-22 15:31:21 -07:00
Todd C. Miller
b04386f631 Most Defaults entries are applied in order.
The exceptions are command-specific Defaults (which cannot be applied
until the command's path is resolved) and a small number of "early"
defaults that affect other entries.
2025-02-14 09:29:37 -07:00
Todd C. Miller
a4a999b5eb Run groff with warnings enabled for "make lint". 2025-02-10 19:40:26 -07:00
Todd C. Miller
8feff96d37 regen 2025-02-10 08:42:09 -07:00
Todd C. Miller
d3293c528a Make DIAGNOSTICS descriptions indent consistent with sudo.mdoc.in. 2025-02-10 08:42:09 -07:00
Todd C. Miller
dc0f16dbc4 Avoid using ".It Li foo ..." in sudo manuals.
The .Li macro is deprecated and makes no difference on terminal
devices.  Also avoid using items greater than 80 characters which
will wrap incorrectly.  Bug #1075.
2025-02-09 14:36:10 -07:00
Todd C. Miller
aad69105d8 Fix warnings from groff -mandoc -t -K utf8 -rF0 -rHY=0 -ww -b -z
Specify list offset and width in ens where applicable.
Shorten the ttyname description in sudo_logsrv.proto.mdoc.in.
Bug #1075.
2025-02-09 14:36:09 -07:00
Todd C. Miller
e670d2a85d Sort entries in the "SEE ALSO" section. 2024-12-20 18:02:54 -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
8b53757164 Shell-style substitution is not supported in env_file.
Also document that comments are supported.
2024-11-11 09:48:07 -07:00
Todd C. Miller
9d49f861c8 Run igor on other docs too, not just man pages 2024-10-28 09:33:23 -06:00
Todd C. Miller
5180dd8021 Remove trailing whitespace 2024-10-28 09:23:42 -06:00
Ferdinand Bachmann
915935ab65 Fix version typo for pam_silent option in sudoers man page 2024-09-09 19:53:43 -06:00
Todd C. Miller
6a5a8f58e9 Document that ttydev is formatted as a long long. 2024-08-14 07:56:50 -06:00
Todd C. Miller
986fdec537 Rename secure_path_set -> secure_path_status 2024-07-28 15:11:42 -06:00
Todd C. Miller
a5f5ceecf1 regen 2024-07-28 15:13:05 -06:00
Todd C. Miller
200af679dc Add sudo_logsrv.proto manual cross-reference. 2024-07-14 18:55:21 -06:00
Todd C. Miller
fc051ceff5 Reference schema.IBM_LDAP. 2024-06-25 20:14:21 -06:00
Todd C. Miller
e97060d2f5 Add schema for IBM Directory Server in LDIF format.
GitHub issue #384
2024-06-25 19:54:09 -06:00
Todd C. Miller
06799eddf9 Improve the description of secure_path. 2024-06-11 08:16:23 -06:00
Todd C. Miller
e0e24456bc Enable secure_path in default sudoers file.
It is still disabled by default in the sudo binary.
2024-06-10 20:37:05 -06:00
Todd C. Miller
648ce410f3 Add comment that the .mdoc files are generated from .mdoc.in 2024-05-28 20:32:50 -06: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
54ac175d36 Include the name of the original .mdoc.in file in the .man.in file.
This should make it more obvious which is the authoritative file.
2024-05-21 07:33:13 -06:00
Todd C. Miller
ee56176b15 Add double quotes around #schemaNamingContext in example.
GitHub issue #376
2024-05-17 19:36:57 -06:00
Todd C. Miller
27963e39f3 Pass "make spell" with updated codespell. 2024-04-29 09:19:52 -06:00
Todd C. Miller
37f8a84531 Commands with multiple digests of the same type are stored in an array. 2024-04-26 07:37:26 -06:00
Todd C. Miller
ecdf0c80f3 Add pam_silent sudoers option.
Inspired by PR #368
GitHub issue #216
2024-04-17 19:30:11 -06:00
Todd C. Miller
46e31a74d7 Add "json_pretty" log format, currently the same as "json".
In a future version, "json" will be an alias for "json_compact"
instead.  GitHub issue #357.
2024-03-09 10:59:54 -07:00
Todd C. Miller
1debad3bec Add json_compact log type for compact/minified JSON.
The "json_compact" log type logs one event per line in compact/minified
JSON format.  GitHub issue #357.
2024-03-08 16:31:39 -07: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
f69031da24 Quest no longer sponsors sudo development. 2024-01-31 10:05:50 -07:00
Todd C. Miller
b39dc7c5f1 Document side-effects of enabling the use_pty option. 2024-01-08 14:28:58 -07:00
Todd C. Miller
6d4ffe6743 In the NOEXEC example make it clear that "shanty" is a host.
Bug #1064
2023-12-19 09:55:09 -07:00
THE-Spellchecker
5eba4b48cf Typographical and Grammatical fixes 2023-11-28 15:00:04 -07:00