Email or username:

Password:

Forgot your password?
Top-level
Matthew Miller

@pid_eins

I may not have had enough coffee yet, but I don't mean the policy part (I don't think). It's a feature thing: "sudo vi somefile" (or nano, or joe, or whatever) runs the editor as root. `sudo -e somefile` copies the file (or a list of files) to tmp (with mktemp), runs $VISUAL, and if the files have changed, copies them back.

3 comments
Matthew Miller

@pid_eins

I guess there _is_ some policy stuff with it too, but it's mostly about keeping users with non-root sudo from doing bad things

Matthew Miller

@pid_eins

It might be interesting for GNOME Text to grow run0-like "edit as root" functionality, but if you're at the command-line it's jarring to get a GUI editor.

Matthew Miller

@pid_eins

FWIW I think run0 is a great idea, and I'd like to propose we deprecate admin-by-default sudo in Fedora Linux*. But I think this is a feature-parity requirement for us to do that.

* remove %wheel from the config, don't ship on desktops (at least) by default, update examples in docs, and _maybe_ add an alias that suggests trying run0 if someone types sudo.

Go Up