On 2019-04-05, Dumitru Moldovan <du...@gmx.com> wrote:
> Also, if you need to edit files in /etc, do it with a minimal editor
> from the base system, like vi, not with a full-blown GUI application.

Or copy to a temporary file, run the editor as your user, and copy back.
With sudo there's "sudoedit" that automates this; doas doesn't have this
but it could be implemented as a script.

The technique Bruno suggests (setting the Xauthority path etc) can also
be used for running software as a *less* privileged user too (e.g. if you
don't want something to have access to files in your ~).
>
>

Reply via email to