Subject: Re: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root

From: Stefan Monnier <[email-masked]>
Date: Mon, 15 Jul 2019 10:42:17 -0400

> Wouldn't it be simpler to do this in the shell, e.g.,
>
>     cat >>/root/.bashrc <<'EOF'
>     alias emacs='emacs -u "$LOGNAME"'
>     EOF
>
> although I would personally suggest
>
>     cat >>/root/.bashrc <<'EOF'
>     alias emacs='echo Do not run emacs as root'
>     EOF

Yes, there are various ways to skin this cat.

        Stefan