Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4971

Advanced users • Right-click context menu item "Edit as Administrator" or "Edit as Root"

$
0
0
Question and/or enhancement request:

I am running Ubuntu 18.4 on an Intel laptop to use as a development environment for my Jetson Nano, and I was using it to make a multi-boot SSD image for my Raspberry Pi based robot.

Spoiler:
I got it all to work, including Bookworm-64, on a Pi-4.

I discovered a very handy right-click context-menu feature in Ubuntu 18.04:
If you are in a directory, (or are looking at a file), that is owned by root, (/etc/fstab was the one I usually hit), you could select it and then when you right-clicked on it, one of the entries was "Edit as Administrator" (or something like that). If you selected it you got a sudo-like authentication prompt and were then brought to a text editor running as root for the duration of that file's edit session.

This was incredibly convenient since it allowed me to edit specific root-owned files without having to sudo root, or constantly run different sudo edit commands in a terminal.

When creating my multi-boot SSD, it made things much easier and efficient. It was a literal Godsend.

Question 1:
Does this exist somehow as a selectable option somewhere in distribution Buster, Bullseye, or Bookworm? If so, how do I enable it.

Question 2:
If this feature doesn't exist as a selectable option, is there some way to add it short of re-writing the desktop manager, etc.?
(i.e. Via a reasonably short script, or a downloaded package, etc.)

Question 3:
If none of these are reasonably available, how do I submit an enhancement request to add a feature like that?

Thanks in advance for any help you can provide!

Statistics: Posted by jharris1993 — Mon Aug 26, 2024 4:35 pm



Viewing all articles
Browse latest Browse all 4971

Trending Articles