Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass through sudo password prompt #68

Open
evils opened this issue Oct 29, 2022 · 8 comments
Open

pass through sudo password prompt #68

evils opened this issue Oct 29, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@evils
Copy link

evils commented Oct 29, 2022

i often do sudo nixos-rebuild -I nixpkgs=/home/evils/nixpkgs switch |& nom
nom used to at least pass the password prompt through for a second, but somewhere between 1.1.3.0 and 2.0.0.2 that stopped

it'd be nice if the prompt was permanently passed through so i don't have to cancel and do sudo -v to be sure sudo got my password

@maralorn
Copy link
Owner

maralorn commented Nov 1, 2022

Hey there,

sorry for breaking your workflow. I think this has something to do with the prompt not ending in a newline.

@maralorn maralorn added the bug Something isn't working label Nov 1, 2022
@maralorn maralorn added this to the 2.1 milestone Nov 1, 2022
@maralorn
Copy link
Owner

Fixed, new release will come soon.

@maralorn
Copy link
Owner

I have the feeling that this might actually still be a problem despite my "fix". Is this problem fixed for you @evils ?

@evils
Copy link
Author

evils commented Dec 15, 2022

hmm, i had the impression it was working on my little pcengines board
but i just checked and my desktop is actually ahead, at 2.0.0.5 (vs 2.0.0.4)
so it showing the prompt for a second on the board is probably due to it being significantly slower than my desktop...
on my desktop it does display it, but for maybe 1 frame
which could qualify as fixing the issue i described
but not the ideal scenario

@maralorn maralorn reopened this Dec 15, 2022
@devhell
Copy link

devhell commented Sep 10, 2023

If I hadn't found this issue, I wouldn't know you attempted a fix. 😁 I've been typing my password in good faith, like @evils, and did wonder if there's something planned to address this UX-wise.

@maralorn
Copy link
Owner

I am currently on a break from working on nom but it will be over in a few months. Then I will look into this again.

@johnhamelink
Copy link

johnhamelink commented Sep 18, 2023

I've found that I can see the sudo prompt if I hit enter so that the prompt is re-rendered after failing validation.

@devhell
Copy link

devhell commented Sep 30, 2023

I've found that I can see the sudo prompt if I hit enter so that the prompt is re-rendered after failing validation.

Interesting, I did the same thing, and the prompt appeared for a second and then was overwritten by the timer again. Maybe it's terminal dependent somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants