nubosoftware / linux-remote-desktop

Linux based secure, open source, multi-tenant environment for remote work.
Apache License 2.0
307 stars 33 forks source link

Add doas and root user support #2

Closed ivdok closed 2 years ago

ivdok commented 2 years ago

Some systems might contain doas instead of sudo, e.g. Alpine or Gentoo. Or they can contain only root user, since the environment is either isolated or secured otherwise. This commit adds preflight checks and generalizes further steps. TODO: distro parsing, init-system detection, check if user is present in docker group, refactor excessive IF usage.