Skip to main content
added 24 characters in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

I amI'm new to dmenu. I amI'm trying to run programs which need sudosudo permission with dmenu. I haveI've followed this link -> https://www.reddit.com/r/dmenu/comments/1xxszr/run_programs_as_root_through_dmenu/this link So. So I have script dpass./dpass in my binbin folder which says:

#!/bin/bash
dmenu -p "$1" <&- && echo

I haveI've also ranrun the command:

$ export SUDO_ASKPASS=/home/username/bin/dpass

So now I have a script in my binbin folder called "shutdown"shutdown. It says:

#!/bin/bash
sudo -A shutdown -h now

When I try to run it through dmenu, it does ask me for my password, but the problem is that when I type the password the password is not hidden. I find this really unsecureinsecure since anyone can see my password. Is there anyway to hide passwordpasswords in dmenu?

I am new to dmenu. I am trying to run programs which need sudo permission with dmenu. I have followed this link -> https://www.reddit.com/r/dmenu/comments/1xxszr/run_programs_as_root_through_dmenu/ So I have script dpass in my bin folder which says

#!/bin/bash
dmenu -p "$1" <&- && echo

I have also ran the command

export SUDO_ASKPASS=/home/username/bin/dpass

So now I have a script in my bin folder called "shutdown". It says

#!/bin/bash
sudo -A shutdown -h now

When I try to run it through dmenu, it does ask me for my password, but the problem is that when I type the password the password is not hidden. I find this really unsecure since anyone can see my password. Is there anyway to hide password in dmenu?

I'm new to dmenu. I'm trying to run programs which need sudo permission with dmenu. I've followed this link. So I have script ./dpass in my bin folder which says:

#!/bin/bash
dmenu -p "$1" <&- && echo

I've also run the command:

$ export SUDO_ASKPASS=/home/username/bin/dpass

So now I have a script in my bin folder called shutdown. It says:

#!/bin/bash
sudo -A shutdown -h now

When I try to run it through dmenu, it does ask me for my password, but the problem is that when I type the password the password is not hidden. I find this really insecure since anyone can see my password. Is there anyway to hide passwords in dmenu?

Source Link

Hide password in dmenu

I am new to dmenu. I am trying to run programs which need sudo permission with dmenu. I have followed this link -> https://www.reddit.com/r/dmenu/comments/1xxszr/run_programs_as_root_through_dmenu/ So I have script dpass in my bin folder which says

#!/bin/bash
dmenu -p "$1" <&- && echo

I have also ran the command

export SUDO_ASKPASS=/home/username/bin/dpass

So now I have a script in my bin folder called "shutdown". It says

#!/bin/bash
sudo -A shutdown -h now

When I try to run it through dmenu, it does ask me for my password, but the problem is that when I type the password the password is not hidden. I find this really unsecure since anyone can see my password. Is there anyway to hide password in dmenu?