Skip to content

Commit f50fee3

Browse files
AnnoyingLinux: Post about sudo prompt
1 parent 8e69a27 commit f50fee3

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
+++
2+
date = '2025-03-21T23:39:58+01:00'
3+
draft = false
4+
title = 'Annoying Linux: Make Sudo Show You the Stars'
5+
summary = 'My issue with the `sudo` password prompt, and how to fix it.'
6+
tags = ["#annoyingLinux"]
7+
+++
8+
9+
I've recently switched back to Linux as my primary OS at work, after running windows for ~2 years.
10+
While setting up my system, I've noticed quite a few "default settings" that really annoy me.
11+
12+
This will probably be the first blog post in a series of my annoyances. Today's topic:
13+
14+
## The `sudo` password prompt
15+
16+
If you run Linux, you'll have to type in your password quite a lot. That's another thing that annoys
17+
me, but that's for a later day. This post is about how the default settings of the `sudo` password
18+
prompt gives you *zero* feedback.
19+
20+
And straight away I can hear someone shouting - *"It's more secure!"*
21+
22+
If it's that important, then why the hell does all the display managers
23+
show your password as a string of asterisks when you log on to your machine?
24+
25+
I've been using *nix flavoured OSes for almost 20 years now, and I can't believe it took me this
26+
long to google how to fix this. It turns out that it is very easy.
27+
28+
## How do we fix it?
29+
30+
Just add this to `/etc/sudoers`:
31+
32+
```text
33+
Defaults pwfeedback
34+
```
35+
36+
Next time you enter your password you'll be greeted by lovely stars:
37+
38+
```text
39+
[sudo] password for you: ******
40+
```
41+
42+
See you in the next one!

content/tags/_index.md

Whitespace-only changes.

0 commit comments

Comments
 (0)