Todd C. Miller
07a2965bab
Document TCP keepalive options in the manual pages.
2020-01-22 11:07:01 -07:00
Todd C. Miller
b14d633ec6
Add runas_check_shell flag to require a runas user to have a valid shell.
...
Not enabled by default.
2019-12-09 19:29:45 -07:00
Todd C. Miller
df8f06609c
Add a new flag "allow_unknown_runas_id" to control matching of unknown IDs.
...
Previous, sudo would always allow unknown user or group IDs if the
sudoers entry permitted it. This included the "ALL" alias.
With this change, the admin must explicitly enable support for unknown IDs.
2019-12-09 17:14:06 -07:00
Todd C. Miller
d98022177e
Document log_server_cabundle, log_server_peer_cert and log_server_peer_key
2019-12-06 13:23:51 -07:00
Todd C. Miller
f913249dd0
Rename "log_server" in sudoers to "log_servers" to match I/O plugin.
2019-11-18 09:39:03 -07:00
Todd C. Miller
d8ccf11c58
Document the log_server and log_server_timeout options
2019-11-15 13:41:52 -07:00
Todd C. Miller
635445d471
Transparently handle the "sudo sudoedit" problem.
...
Some admin are confused about how to give users sudoedit permission
and many users try to run sudoedit via sudo instead of directly.
If the user runs "sudo sudoedit" sudo will now treat it as plain
"sudoedit" after issuing a warning. If the admin has specified a
fully-qualified path for sudoedit in sudoers, sudo will treat it
as just "sudoedit" and match accordingly. In visudo (but not sudo),
a fully-qualified path for sudoedit is now treated as an error.
2019-11-05 15:18:34 -07:00
Todd C. Miller
c3ce3a84fb
Refer to user-ID and group-ID instead of "user ID" and "group ID"
2019-10-19 14:26:41 -06:00
Todd C. Miller
6260bf60b4
sudoedit doesn't create a new PAM session so PAM umask does not apply.
2019-10-18 06:43:33 -06:00
Todd C. Miller
b02851dcf3
Change how the umask is handled with PAM and login.conf.
...
If the umask is explicitly set in sudoers, use that value regardless
of what is in PAM or login.conf. If using the default umask from
sudoers, allow PAM or login.conf to override it. Bug #900
2019-10-18 06:20:27 -06:00
Todd C. Miller
cf6c60c102
Add log_allowed and log_denied sudoers flags, defaulting to true.
2019-10-17 13:43:04 -06:00
Todd C. Miller
8761217f83
Be more consistent with how we talk about sudoers Defaults settings.
...
Use "flag" not "option" when referring to boolean flags.
Use "setting" in place of "Defaults setting" in most places.
Use "the foo option" instead of "sudo's foo option" for command line options.
2019-10-16 14:29:12 -06:00
Todd C. Miller
984382f8a9
Refer to number of terminal lines, not rows, for consistency.
2019-09-18 20:03:04 -06:00
Todd C. Miller
3e56be3564
Store signal name, not number in I/O log timing file.
...
The "SIG" prefix is not used so, e.g. SIGTERM -> "TERM".
This makes the I/O log files portable from one system to another.
Older I/O log files with signal numbers can still be replayed.
2019-08-05 16:30:58 -06:00
Todd C. Miller
6e0f7166e3
Document that PAM session modules are now run with the silent flag.
2019-07-19 10:38:53 -06:00
Todd C. Miller
10b5529a0b
Clarify that ttyin contains raw terminal input.
2019-07-12 08:24:07 -06:00
Todd C. Miller
03ba6426e7
Expand the description of the I/O log files.
2019-07-11 13:42:12 -06:00
Todd C. Miller
bb024cf093
Rename PLUGINDIR -> plugindir
2019-07-03 13:15:47 -06:00
Todd C. Miller
81602ad086
sudoedit should be used for editing files instead of "sudo editor"
...
That way the user's editor config files are used by the editor.
2019-06-21 14:54:09 -06:00
Todd C. Miller
a45732528b
Use the term pseudo-terminal more consistently.
2019-06-20 16:52:49 -06:00
Todd C. Miller
ee214e5261
Document why HOME should not be preserved from the user's environment.
...
Text was adapted from what is already present in the UPGRADE file.
Also mark set_home and always_set_home as obsolete.
2019-06-20 16:32:18 -06:00
Todd C. Miller
958cf7e37f
Don't describe env_editor as a security hole.
...
Users that are able to edit sudoers can grant themselves permissions
so the fact that visudo runs the editor as root is not a security issue.
2019-06-20 11:40:47 -06:00
Todd C. Miller
6fe2223298
Fix details of how EDITOR, VISUAL and SUDO_EDITOR are (or are not) preserved.
...
The description in the editor option was incorrect and didn't mention env_keep.
Reported by Sander Bos
2019-06-20 11:05:15 -06:00
Todd C. Miller
7ce9b80085
Use of "they" was ambiguous.
2019-06-19 14:36:59 -06:00
Todd C. Miller
05f9643b89
Better description of secure_path.
...
The secure_path option affects the resolution of unqualified commands
as well as the environment that commands run with.
2019-06-19 14:29:25 -06:00
Todd C. Miller
7d5b1e3b1b
Fix a few typos and awkward wording.
...
Use the singular "they" instead of he/she.
Add back missing text in description of variables starting with ().
Based on changes from Sander Bos.
2019-06-19 14:02:16 -06:00
Todd C. Miller
cb4ded8fb6
Clarify which environment variables are set based on the target user.
2019-06-15 09:41:39 -06:00
Todd C. Miller
976550084e
Add pam_acct_mgmt setting to enable/disable PAM account validation.
2019-04-29 19:44:13 -06:00
Todd C. Miller
1e1ef61902
Add SPDX-License-Identifier to files.
2019-04-29 07:21:51 -06:00
Todd C. Miller
0e8fffdb30
Fix unescaped '\' and remove an extra '[' in the definition of digest.
2019-03-04 08:52:28 -07:00
Todd C. Miller
7d5b0064af
The iolog_dir section is below the maxseq section, not above.
2018-12-20 06:57:05 -07:00
Todd C. Miller
b8ba372227
Fix section in the .TH line of *.man.in file.
...
The substitution for @mansectsu@ and @mansectform@ was broken.
No longer need to strip out OpenBSD from the header line.
2018-11-27 13:15:08 -07:00
Todd C. Miller
e010706ede
Use roff conditionals in the manuals instead of post-processing.
...
We still need to process the resulting .man.in files to add back
the conditionals but this should be easier to debug as the changes
are visible in the .in file.
Some minor postprocessing is still used to make the manuals HP-UX
friendly and to change "0 seconds" -> unlimited after substitution.
2018-11-27 08:14:15 -07:00
Todd C. Miller
7c0019d2a5
Revert changes to give arguments to the .Bx macro.
...
This is intended for things like .Bx 4.3 to generate "4.3BSD" so
the argument ends up before the BSD, not after. Just go back to
using "BSD authentication" and "BSD login classes" so fixmdoc.sh
can operate correctly. Bug #861
2018-11-24 08:34:03 -07:00
Todd C. Miller
fb015fac1b
Document that the target user's groups may be specified via the -g option.
2018-10-27 12:52:17 -06:00
Todd C. Miller
019279a4b8
Fix some mangled text in the license block.
2018-10-26 08:19:41 -06:00
Todd C. Miller
675802b71c
Use mdoc macros for BSD systems.
...
All manuals now pass "make lint"
2018-10-07 07:34:22 -06:00
Todd C. Miller
dd6a6e4013
Fix problems found by igor. Bug #854
2018-10-06 06:00:56 -06:00
Todd C. Miller
d537daf787
Treat LOGIN, LOGNAME and USER specially. If one is preserved
...
or deleted we want to preserve or delete all of them.
2018-09-24 05:30:28 -06:00
Todd C. Miller
5f61f2c0f4
Remove special handling of the USERNAME environment variable. It
...
used to be set on old versions of Fedora but that hasn't been the
case for some time. It's worth noting that ssh doesn't set USERNAME
either.
2018-09-24 05:30:03 -06:00
Todd C. Miller
0484e3d6a9
Fix ambiguity when talking about Aliases. We can't use User_Alias
...
in the grammar as both the definition of the Alias as well as its
name. This adds {User,Runas,Host,Cmnd}_Alias_Spec to help differentiate
between the name of the alias and its definition. Bug #834
2018-08-07 10:03:05 -06:00
Todd C. Miller
b67915c6e4
Fix some issues pointed out by mandoc -Tlint
2018-06-13 11:19:35 -06:00
Todd C. Miller
1e26c6043e
Describe the special handling of LOGNAME, USER and USERNAME.
...
Fix typos reported by aspell.
2018-04-18 14:14:47 -06:00
Todd C. Miller
3194a00e9e
Document that the editor setting is also used by sudoedit.
2018-04-18 09:40:48 -06:00
Todd C. Miller
43ea752ded
Update copyright year and regen man pages.
2018-04-15 16:43:06 -06:00
Todd C. Miller
b6c53ac846
Decrease bullet width to 1n.
2018-03-21 06:52:50 -06:00
Todd C. Miller
e26ef96a65
Add case_insensitive_group and case_insensitive_user sudoers options,
...
which are enabled by default.
2018-03-05 10:42:02 -07:00
Todd C. Miller
12affcd5ef
Add missing close parenthesis in "Including other files from within
...
sudoers" section. Bug #824
2018-02-26 17:59:58 -07:00
Todd C. Miller
525c6a3d94
Use /run in preference to /var/run if it exists.
...
Bug #822
2018-02-19 10:59:12 -07:00
Todd C. Miller
5de49b2d6b
The max timeout for kernel time stamps is 60 minutes, not 3600 minutes.
2018-01-30 11:11:48 -07:00