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

Alternative to sudo #22

Closed
infinisil opened this issue Jul 24, 2020 · 7 comments
Closed

Alternative to sudo #22

infinisil opened this issue Jul 24, 2020 · 7 comments

Comments

@infinisil
Copy link
Owner

infinisil commented Jul 24, 2020

As @cole-h pointed out here, there are other ways than sudo to get root access, such as doas. Nixus should not hardcode this to sudo.

Nixops supports other ways via a privilegeEscalationCommand option, we could mirror that.

@cole-h
Copy link
Contributor

cole-h commented Jul 24, 2020

(That's the wrong doas -- Nixpkgs contains https://github.com/Duncaen/OpenDoas)

@infinisil
Copy link
Owner Author

Ah thanks! Corrected now

@bqv
Copy link
Contributor

bqv commented Aug 13, 2020

Alternatively, since we depend on SSH anyway, why not have a special SSH route/user/command/hatch

@cole-h
Copy link
Contributor

cole-h commented Aug 13, 2020

Some deployments disallow SSH root logins (PermitRootLogin=no), unless there's another system in place for this sort of privilege escalation that I'm overlooking.

@bqv
Copy link
Contributor

bqv commented Aug 13, 2020

Well, since nixus is good with ssh keys anyway, I feel like catering for "without-password" machines wouldn't be terrible

@cole-h
Copy link
Contributor

cole-h commented Aug 13, 2020

It would be a nice addition indeed, but it should not be seen as a substitute for doas or sudo. I disable SSH root logins for my machines, period. I wouldn't change this just to be able to use nixus.

My takeaway is that both

  1. sudo alternatives
  2. SSH root logins

should be supported, and not only one or the other.

@infinisil
Copy link
Owner Author

Now addressed with above PR. And SSH root login already worked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants