What are these for?

Matthew Miller mattdm at fedoraproject.org
Fri Nov 23 00:01:01 UTC 2012


On Thu, Nov 22, 2012 at 08:22:23PM +0100, lee wrote:
> > Or better, set VISUAL=emacs and run `sudo -e`, which was designed for
> > this purpose. (And which, by the way, will work out of the box on Fedora
> > for members of the wheel group.)
> In which way is that better?

Because emacs isn't actually executed as root. The editor is executed under
your user id, operating on a temporary file, which is then copied into
place. It's impossible for the editor (or the person using it) to do
anything as root other than edit the specified file.




-- 
Matthew Miller  ☁☁☁  Fedora Cloud Architect  ☁☁☁  <mattdm at fedoraproject.org>


More information about the users mailing list