morph icon indicating copy to clipboard operation
morph copied to clipboard

Don't use sudo when SSH uses root user

Open mweinelt opened this issue 4 years ago • 1 comments

I can't disable sudo on machines, that don't have any users that should elevate because morph relies on sudo, likely to switch-to-configuration? Can this be made optional?

Executing 'switch' on matched hosts:

** foo.example.com
bash: sudo: command not found
exit status 127%    
{
  security.sudo.enable = false;
}

mweinelt avatar Jul 19 '21 15:07 mweinelt

We're fine with an if root then no-sudo! :)

srhb avatar Nov 17 '21 09:11 srhb