Skip to content

Add pwfeedback_char option to allow configuring the feedback character#532

Open
halleyscommet wants to merge 1 commit intosudo-project:mainfrom
halleyscommet:pwfeedback-char
Open

Add pwfeedback_char option to allow configuring the feedback character#532
halleyscommet wants to merge 1 commit intosudo-project:mainfrom
halleyscommet:pwfeedback-char

Conversation

@halleyscommet
Copy link
Copy Markdown

Currently, when pwfeedback is enabled in sudoers, the feedback character
is hardcoded to '*' in tgetpass.c. This adds a new sudoers option,
pwfeedback_char, that allows administrators to configure the character
used for password feedback.

Example usage in sudoers:
Defaults pwfeedback
Defaults pwfeedback_char="•"

The default value remains '*' so existing behavior is unchanged.
Input validation rejects empty strings and values longer than 4 bytes
(the maximum size of a UTF-8 character).

Note: lib/util/util.map also requires the following line added under
the sudo_term_* entries to export the new symbol, but this file is
listed in .gitignore and could not be included in this PR:
sudo_pwfeedback_char;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant