bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root
Date: Mon, 15 Jul 2019 10:42:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]