Skip to content

Commit 7962621

Browse files
authored
Release 0.2.11 (#1398)
2 parents beb6113 + 68ba08a commit 7962621

File tree

12 files changed

+51
-28
lines changed

12 files changed

+51
-28
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## [0.2.11] - 2025-12-16
4+
5+
### Added
6+
- Support for `-A / --askpass` to enable using an external askpass program
7+
under control of the `SUDO_ASKPASS` environment variable.
8+
- Functional support for localisation. This can be enabled by building sudo-rs
9+
with the `gettext` feature and installing a `sudo-rs.mo` in the correct
10+
LC_MESSAGES folder. Since we have no translations yet this is off by default.
11+
12+
### Changed
13+
- sudo is always built with sudoedit functionality
14+
- sudo no longer sets the archaic `MAIL` environment variable
15+
- timestamps format has been changed to always check for session pid (#1132).
16+
As a consequence, timestamps created by earlier versions of sudo-rs are
17+
invalidated after upgrading to this version.
18+
- The folder containing zoneinfo is detected at runtime; `build.rs` was removed
19+
- The default value of `Defaults editor` has been changed on Linux to remove the
20+
dependence on Debian-specific `/usr/bin/editor`.
21+
22+
### Fixed
23+
- `sudo -i` made `root` as owner of the pty instead of the login user (#1333)
24+
- visudo usability improvements (#1388, #1394)
25+
- Mistakes in the man pages (#1338, #1362, #1387)
26+
- Better error message when /etc/sudoers contains regular expressions (#1352)
27+
- Better error message when /etc/sudoers is missing (#1368)
28+
- Redirecting input/output to another TTY was not recognised as redirection;
29+
this fix originated from Todd Miller's sudo (#1380)
30+
331
## [0.2.10] - 2025-11-10
432

533
### Changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sudo-rs"
33
description = "A memory safe implementation of sudo and su."
4-
version = "0.2.10"
4+
version = "0.2.11"
55
license = "Apache-2.0 OR MIT"
66
edition = "2021"
77
repository = "https://github.com/trifectatechfoundation/sudo-rs"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ We currently only offer these for x86-64 Linux systems.
9999
We recommend installing sudo-rs and su-rs in your `/usr/local` hierarchy so it does not affect the integrity of the package
100100
manager of your Linux distribution. You can achieve this using the commands:
101101
```sh
102-
sudo tar -C /usr/local -xvf sudo-0.2.10.tar.gz
102+
sudo tar -C /usr/local -xvf sudo-0.2.11.tar.gz
103103
```
104104
and for su-rs:
105105
```sh
106-
sudo tar -C /usr/local -xvf su-0.2.10.tar.gz
106+
sudo tar -C /usr/local -xvf su-0.2.11.tar.gz
107107
```
108108
This will install sudo-rs and su-rs in `/usr/local/bin` using the usual commands `sudo`, `visudo`, `sudoedit` and `su`. Please double check
109109
that in your default `PATH`, the folders `/usr/local/bin` and `/usr/local/sbin` have priority over `/usr/bin` and `/usr/sbin`.

docs/man/su.1.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.6.3
22
.\"
3-
.TH "SU" "1" "" "sudo\-rs 0.2.10" "sudo\-rs"
3+
.TH "SU" "1" "" "sudo\-rs 0.2.11" "sudo\-rs"
44
.SH NAME
55
\f[CR]su\f[R] \- run a shell or command as another user
66
.SH SYNOPSIS

docs/man/su.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: SU(1) sudo-rs 0.2.10 | sudo-rs
2+
title: SU(1) sudo-rs 0.2.11 | sudo-rs
33
---
44

55
# NAME

docs/man/sudo.8.man

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.6.3
22
.\"
3-
.TH "SUDO" "8" "" "sudo\-rs 0.2.10" "sudo\-rs"
3+
.TH "SUDO" "8" "" "sudo\-rs 0.2.11" "sudo\-rs"
44
.SH NAME
55
\f[CR]sudo\f[R], \f[CR]sudoedit\f[R] \- execute a command as another
66
user

docs/man/sudo.8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: SUDO(8) sudo-rs 0.2.10 | sudo-rs
2+
title: SUDO(8) sudo-rs 0.2.11 | sudo-rs
33
---
44

55
# NAME

docs/man/sudoers.5.man

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.6.3
22
.\"
3-
.TH "SUDOERS" "5" "" "sudo\-rs 0.2.10" "sudo\-rs"
3+
.TH "SUDOERS" "5" "" "sudo\-rs 0.2.11" "sudo\-rs"
44
.SH NAME
55
\f[CR]sudoers\f[R] \- sudo\-compatible security configuration
66
.SH DESCRIPTION
@@ -30,11 +30,8 @@ start time of the session leader (or parent process) and a timestamp
3030
(using a monotonic clock if one is available).
3131
The user may then use sudo without a password for a short period of time
3232
(15 minutes unless overridden by the timestamp_timeout option).
33-
By default, \f[CR]sudo\-rs\f[R] uses a separate record for each
34-
terminal, which means that a user\[cq]s login sessions are authenticated
35-
separately.
36-
The timestamp_type option can be used to select the type of timestamp
37-
record sudoers will use.
33+
\f[CR]sudo\-rs\f[R] uses a separate record for each terminal, which
34+
means that a user\[cq]s login sessions are authenticated separately.
3835
.SS Logging
3936
By default, \f[CR]sudo\-rs\f[R] logs both successful and unsuccessful
4037
attempts (as well as errors).
@@ -46,10 +43,10 @@ environment are inherited by the command to be run.
4643
.PP
4744
In \f[CR]sudo\-rs\f[R], the \f[I]env_reset\f[R] flag cannot be disabled.
4845
This causes commands to be executed with a new, minimal environment.
49-
The \f[CR]HOME\f[R], \f[CR]MAIL\f[R], \f[CR]SHELL\f[R],
50-
\f[CR]LOGNAME\f[R] and \f[CR]USER\f[R] environment variables are
51-
initialized based on the target user and the \f[CR]SUDO_*\f[R] variables
52-
are set based on the invoking user.
46+
The \f[CR]HOME\f[R], \f[CR]SHELL\f[R], \f[CR]LOGNAME\f[R] and
47+
\f[CR]USER\f[R] environment variables are initialized based on the
48+
target user and the \f[CR]SUDO_*\f[R] variables are set based on the
49+
invoking user.
5350
Additional variables, such as \f[CR]DISPLAY\f[R], \f[CR]PATH\f[R] and
5451
\f[CR]TERM\f[R], are preserved from the invoking user\[cq]s environment
5552
if permitted by the \f[I]env_check\f[R] or \f[I]env_keep\f[R] options.
@@ -539,9 +536,6 @@ entry would be:
539536
queen rushmore = NOPASSWD: /bin/kill, PASSWD: /bin/ls, /usr/bin/lprm
540537
.EE
541538
.PP
542-
Note, however, that the PASSWD tag has no effect on users who are in the
543-
group specified by the exempt_group setting.
544-
.PP
545539
By default, if the NOPASSWD tag is applied to any of a user\[cq]s
546540
entries for the current host, the user will be able to run \[lq]sudo
547541
\-l\[rq] without a password.
@@ -885,8 +879,9 @@ first editor in the list that exists and is executable if not.
885879
Unless invoked as \f[B]sudoedit\f[R], sudo does not preserve the
886880
SUDO_EDITOR, VISUAL or EDITOR environment variables unless they are
887881
present in the \f[B]env_keep\f[R] list.
888-
The default on Linux is \f[I]/usr/bin/editor\f[R], on FreeBSD
889-
\f[I]/usr/vim/vi\f[R].
882+
The default on Linux is
883+
\f[I]/usr/bin/editor:/usr/bin/nano:/usr/bin/vi\f[R].
884+
On FreeBSD the default is \f[I]/usr/bin/vi\f[R].
890885
.RE
891886
.SS Strings that can be used in a boolean context:
892887
.IP \[bu] 2

docs/man/sudoers.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: SUDOERS(5) sudo-rs 0.2.10 | sudo-rs
2+
title: SUDOERS(5) sudo-rs 0.2.11 | sudo-rs
33
---
44

55
# NAME

0 commit comments

Comments
 (0)