Enable password feedback when entering sudo password: Difference between revisions
From Pengwings
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
You need to add pwfeedback to the sudo defaults | You need to add pwfeedback to the sudo defaults, there are two ways to do it, the latter is probably better | ||
# By editing /etc/sudoers | |||
Run visudo (allows editing sudo config safely) | Run visudo (allows editing sudo config safely) | ||
sido visudo | sido visudo | ||
| Line 9: | Line 10: | ||
Add pwfeedback to 'Defaults' | Add pwfeedback to 'Defaults' | ||
Defaults env_reset,pwfeedback | Defaults env_reset,pwfeedback | ||
# By adding a special sudoers.d custom rule file | |||
Alternatively you can also add the following file | |||
/etc/sudoers.d/enable-pwfeedback | |||
Containing this string: | |||
Defaults pwfeedback | |||
Revision as of 11:26, 21 August 2026
You need to add pwfeedback to the sudo defaults, there are two ways to do it, the latter is probably better
- By editing /etc/sudoers
Run visudo (allows editing sudo config safely)
sido visudo
Find 'Defaults' section:
Defaults env_reset
Add pwfeedback to 'Defaults'
Defaults env_reset,pwfeedback
- By adding a special sudoers.d custom rule file
Alternatively you can also add the following file
/etc/sudoers.d/enable-pwfeedback
Containing this string:
Defaults pwfeedback