Sample Header Ad - 728x90

Hide password in dmenu

1 vote
3 answers
2408 views
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?
Asked by odbhut.shei.chhele (121 rep)
Aug 21, 2018, 04:06 AM
Last activity: Jul 3, 2020, 07:45 AM