Is there an equivalent to "sudo -e"?
5 comments
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. 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 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. 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. |
@mattdm no. systemd does not implement the policy logic after all. its polkit that does. Polkit could certainly use some tool like that.