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, there are two ways to do it, the latter is probably better | 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 11: | Line 11: | ||
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 | Alternatively you can also add the following file | ||
/etc/sudoers.d/enable-pwfeedback | /etc/sudoers.d/enable-pwfeedback | ||
Containing this string: | Containing this string: | ||
Defaults pwfeedback | Defaults pwfeedback | ||
Latest 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