Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/man/sudoers.5.man
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ When pwfeedback is set, sudo will provide visual feedback when the user
presses a key.
Note that this does have a security impact as an onlooker may be able to
determine the length of the password being entered.
This flag is off by default.
This flag is on by default.
.RE
.IP \[bu] 2
rootpw
Expand Down
2 changes: 1 addition & 1 deletion docs/man/sudoers.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ sudo's behavior can be modified by Default_Entry lines, as explained earlier. A

* pwfeedback

By default, sudo reads the password like most other Unix programs, by turning off echo until the user hits the return (or enter) key. Some users become confused by this as it appears to them that sudo has hung at this point. When pwfeedback is set, sudo will provide visual feedback when the user presses a key. Note that this does have a security impact as an onlooker may be able to determine the length of the password being entered. This flag is off by default.
By default, sudo reads the password like most other Unix programs, by turning off echo until the user hits the return (or enter) key. Some users become confused by this as it appears to them that sudo has hung at this point. When pwfeedback is set, sudo will provide visual feedback when the user presses a key. Note that this does have a security impact as an onlooker may be able to determine the length of the password being entered. This flag is on by default.

* rootpw

Expand Down
2 changes: 1 addition & 1 deletion src/defaults/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defaults! {
match_group_by_gid = false #ignored
use_pty = true
visiblepw = false #ignored
pwfeedback = false
pwfeedback = true
rootpw = false
targetpw = false
noexec = false
Expand Down
4 changes: 2 additions & 2 deletions src/sudoers/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ mod test {
allowed_attempts: 3,
prior_validity: Duration::minutes(15),
credential: AuthenticatingUser::InvokingUser,
pwfeedback: false,
pwfeedback: true,
password_timeout: Some(Duration::seconds(300)),
},
);
Expand All @@ -211,7 +211,7 @@ mod test {
allowed_attempts: 3,
prior_validity: Duration::minutes(15),
credential: AuthenticatingUser::InvokingUser,
pwfeedback: false,
pwfeedback: true,
password_timeout: Some(Duration::seconds(300)),
},
);
Expand Down
Loading