Skip to content

Commit a15a5da

Browse files
authored
[docs] mention logfile and remove exempt_group (#1387)
This PR: - adds a note regarding `logfile` since it's a CIS Ubuntu Linux (e.g 24.04 LTS) Benchmark requirement (`5.2.3 Ensure sudo log file exists`) - remove mentions of `exempt_group` since it's not supported ```sh /etc/sudoers:10:10: unknown setting: 'exempt_group' Defaults exempt_group=sudo ^~~~~~~~~~~~ /etc/sudoers.d/012_logfile:1:10: unknown setting: 'logfile' Defaults logfile="/var/log/sudo.log" ``` --------- Signed-off-by: Thomas Sjögren <[email protected]>
1 parent 500c8e3 commit a15a5da

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To avoid that and/or to get the latest version, you can use our prepackaged bina
2424

2525
### Ubuntu 25.10 (Questing Quokka)
2626

27-
sudo-rs is installed and enabled by default; you can control which sudo version is being used by running
27+
sudo-rs is installed and enabled by default; you can control which sudo version is being used by running
2828
```sh
2929
update-alternatives --config sudo
3030
```
@@ -70,7 +70,7 @@ We are maintaining the FreeBSD port of sudo-rs ourselves, which is available in
7070
pkg install sudo-rs
7171
```
7272
To get sudo-rs using the commands `sudo`, `visudo` and `sudoedit`. This conflicts with the `security/sudo` package and so you cannot have both
73-
installed at the same time.
73+
installed at the same time.
7474

7575
Alternatively,
7676
```
@@ -206,6 +206,7 @@ Exceptions to the above, with respect to your `/etc/sudoers` configuration:
206206
compatibility reasons.
207207
* `timestamp_type` is always set at `tty`.
208208
* `sudoedit_checkdir` is always `on`, and `sudoedit_follow` is always `off`.
209+
* `logfile` is not supported --- logging is always done via syslog.
209210

210211
Some other notable restrictions to be aware of:
211212

docs/man/sudoers.5.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ would allow the user queen to run /bin/kill, /bin/ls, and /usr/bin/lprm as root
290290

291291
queen rushmore = NOPASSWD: /bin/kill, PASSWD: /bin/ls, /usr/bin/lprm
292292

293-
Note, however, that the PASSWD tag has no effect on users who are in the group specified by the exempt_group setting.
294-
295293
By default, if the NOPASSWD tag is applied to any of a user's entries for the current host, the user will be able to run “sudo -l” without a password. Additionally, a user may only run “sudo -v” without a password if all of the user's entries for the current host have the NOPASSWD tag.
296294

297295
### SETENV and NOSETENV

0 commit comments

Comments
 (0)