[SOLVED] Open As Administrator context menu item missing?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
quonsar

[SOLVED] Open As Administrator context menu item missing?

Post by quonsar »

On 16.04 I had the option to select any file or folder, right-click, and choose Open As Admin. This is no longer the case? The option is simply missing from the context menu unless it is a folder i'm opening. For example, I could previously navigate to /etc, select fstab, right-click and open as admin for editing. Have I got some setting screwed up, or has something radically changed?

Code: Select all

uname -a
Linux arglebargle 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Mint Mate 19 Tara
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Sir Charles

Re: Open As Administrator context menu item missing?

Post by Sir Charles »

Try

Code: Select all

sudo apt install caja-admin
Caja Admin is a simple Python extension for the Caja file manager that
adds some administrative actions to the right-click menu:

- Open as Administrator: opens a folder in a new Caja window running
with administrator (root) privileges.
- Edit as Administrator: opens a file in a Pluma window running with
administrator (root) privileges.
- Run as Administrator: runs an executable file with administrator
(root) privileges inside a MATE Terminal.

source: Synaptic
Hope this helps!
quonsar

Re: Open As Administrator context menu item missing?

Post by quonsar »

Sorry, no worky!

Code: Select all

caja-admin is already the newest version (0.0.1-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
User avatar
Pjotr
Level 24
Level 24
Posts: 20111
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Open As Administrator context menu item missing?

Post by Pjotr »

Alternative:

Code: Select all

xed admin:///etc/fstab
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
quonsar

Re: Open As Administrator context menu item missing?

Post by quonsar »

I appreciate that info Pjotr, I did not know. However, I'm having no trouble opening as Admin from command line. It is within Caja that I am missing the option.
altair4
Level 20
Level 20
Posts: 11457
Joined: Tue Feb 03, 2009 10:27 am

Re: Open As Administrator context menu item missing?

Post by altair4 »

This is what happens when everyone is not on the same page.

When caja-admin attempts to invoke Edit as Administrator it points to pluma because that is the default text editor for MATE. There is no pluma in Mint. It's xed in Mint.

You can install pluma then all of a sudden the option reappears in the context menu.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
gm10

Re: Open As Administrator context menu item missing?

Post by gm10 »

altair4 wrote: Sun Jul 29, 2018 3:08 pm This is what happens when everyone is not on the same page.

When caja-admin attempts to invoke Edit as Administrator it points to pluma because that is the default text editor for MATE. There is no pluma in Mint. It's xed in Mint.

You can install pluma then all of a sudden the option reappears in the context menu.
This. Open as Administator is for folders and you should already have that, Edit as Administrator needs

Code: Select all

apt install pluma
User avatar
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: Open As Administrator context menu item missing?

Post by Schultz »

Pluma is better anyway than xed. Just my trivial .02¢ worth.
gm10

Re: Open As Administrator context menu item missing?

Post by gm10 »

Schultz wrote: Sun Jul 29, 2018 3:50 pm Pluma is better anyway than xed. Just my trivial .02¢ worth.
Literally everything is better than xed...

The sad part is xed is a pluma fork.
User avatar
Pjotr
Level 24
Level 24
Posts: 20111
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Open As Administrator context menu item missing?

Post by Pjotr »

gm10 wrote: Sun Jul 29, 2018 3:56 pm
Schultz wrote: Sun Jul 29, 2018 3:50 pm Pluma is better anyway than xed. Just my trivial .02¢ worth.
Literally everything is better than xed...
Why? What's wrong with it? :shock:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: Open As Administrator context menu item missing?

Post by Schultz »

Pjotr wrote:
Why? What's wrong with it?
It's been so long I can't quite remember, but I think they dumbed-down the UI. That's for sure the reason why I stopped using Xreader, and I'm sure that's the same reason for Xed.
altair4
Level 20
Level 20
Posts: 11457
Joined: Tue Feb 03, 2009 10:27 am

Re: Open As Administrator context menu item missing?

Post by altair4 »

It doesn't matter which one is better.

caja-admin is installed by default. One of it's functions is to allow the sudo user to edit a "root" owned file through the file manager. It doesn't work because it is pointing to a text editor that is not installed by default.

Before you ship release the OS:

** Fork caja-admin so it points to your default text editor.
** Or install pluma so that it caja-admin works without forking it.

What you don't want is for the user to fix this themselves because Ubuntu-MATE is sitting out there and caja-admin works as designed.

If you aren't careful your users will start demanding their money back.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
gm10

Re: Open As Administrator context menu item missing?

Post by gm10 »

^ agreed altair4.
Pjotr wrote: Sun Jul 29, 2018 4:45 pm
gm10 wrote: Sun Jul 29, 2018 3:56 pm
Schultz wrote: Sun Jul 29, 2018 3:50 pm Pluma is better anyway than xed. Just my trivial .02¢ worth.
Literally everything is better than xed...
Why? What's wrong with it? :shock:
Where do I even start?

It's probably the slowest editor on the planet, takes disproportionate ages to load up such a simplistic tool, and you can brew a coffee trying to open very large files with it while you've got syntax highlighting enabled. My other editors open such files and finish the highlighting in a tiny tiny fraction of the time it takes xed.

The whole admin:// thing is a bug infested crutch, between being unable to create files like that and the double authentication bug I don't go near it personally - my other editors request elevated permissions automatically where needed.

The user experience is just terrible because so many standard keyboard shortcuts are not mapped and you are basically required to use the mouse for a text editor, it's absurd.

I could go on and on, but let's just say I dislike this piece of digital garbage with a vengeance.
quonsar

Re: [SOLVED] Open As Administrator context menu item missing?

Post by quonsar »

Hey thanks all for the assist!
Locked

Return to “MATE”