-
Notifications
You must be signed in to change notification settings - Fork 100
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
Password based sudo #78
Comments
{
sshOpts = [ "-t" ];
} Related is #36 which aimed to solve this too Interactive mode is an internal concept, allowing you to review the deployment before it's made, it has no effect on internal mechanics otherwise (though maybe it would make sense to set |
Using
The last 2 lines appear after I try to enter my password, but it is always denied. Based on the mangled indentation I guess the terminal is in a bad state due to the |
@notgne2 even with |
Not sure the cause of it but that's definitely a bug, I was almost certain I tested this at one point and saw that |
Hmm, having the exact same issue. Neither |
Strangely, I find that |
I know of two ways to avoid this issue whilst still having requiring authentication for sudo. One way to work around this issue, at the cost of X11 forwarding, by moving the password prompt out of the terminal. I do not understand what (if any) the security implications are here. This is similar to #107. Running
The setup is:
In the deploy-rs options: Another approach is to allow Note that both these have chicken and egg problems: they need some options set on the server before |
its not a race condition running with
I'm really not sure how to tackle this as this is not a bug but a design choice afaik. EDIT: WORKAROUND: disable magic rollback which is very unfortunate but it works |
I'm getting the same result with It asks the the pasword later again and this time every other character is echoed. The deploy succeeds, but the terminal is left mangled.
|
I then noticed the comment :
which worked for me ! |
Sadly this bug is still happening, but the workaround is still working as well! Too bad we can't use magic rollback, but at least deploy-rs is working now. |
For those who are looking for how to do this after the #257 fix:
No need for |
After bootstrapping a host with regular nixos-install and setting a password for
nixos
user, I then tried to deploy subsequent generations with deploy-rs. However, even if I turned on interactive mode, I was not able to enter the sudo password.Either I didn't understand how to do it (ux problem) or it is plain not possible at the moment (i think this is the case).
Some people might be reluctant to configure passwordless sudo as base line, hence a way is needed to supply elevation credentials during deployment.
Coming from divnix/digga#197 (comment)
The text was updated successfully, but these errors were encountered: