[SOLVED] Open As Administrator context menu item missing?

Forum rules
Before you post please read how to get help
Post Reply
quonsar
Level 1
Level 1
Posts: 8
Joined: Fri Jun 22, 2012 12:40 pm

[SOLVED] Open As Administrator context menu item missing?

Post by quonsar » Sun Jul 29, 2018 2:44 pm

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 quonsar on Sun Jul 29, 2018 8:59 pm, edited 1 time in total.

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Open As Administrator context menu item missing?

Post by Sir Charles » Sun Jul 29, 2018 2:50 pm

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!
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

quonsar
Level 1
Level 1
Posts: 8
Joined: Fri Jun 22, 2012 12:40 pm

Re: Open As Administrator context menu item missing?

Post by quonsar » Sun Jul 29, 2018 2:53 pm

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 20
Level 20
Posts: 10961
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Open As Administrator context menu item missing?

Post by Pjotr » Sun Jul 29, 2018 2:57 pm

Alternative:

Code: Select all

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

quonsar
Level 1
Level 1
Posts: 8
Joined: Fri Jun 22, 2012 12:40 pm

Re: Open As Administrator context menu item missing?

Post by quonsar » Sun Jul 29, 2018 3:00 pm

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 19
Level 19
Posts: 9276
Joined: Tue Feb 03, 2009 10:27 am

Re: Open As Administrator context menu item missing?

Post by altair4 » 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

gm10
Level 12
Level 12
Posts: 4116
Joined: Thu Jun 21, 2018 5:11 pm

Re: Open As Administrator context menu item missing?

Post by gm10 » Sun Jul 29, 2018 3:33 pm

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 6
Level 6
Posts: 1337
Joined: Thu Feb 25, 2016 8:57 pm

Re: Open As Administrator context menu item missing?

Post by Schultz » Sun Jul 29, 2018 3:50 pm

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

gm10
Level 12
Level 12
Posts: 4116
Joined: Thu Jun 21, 2018 5:11 pm

Re: Open As Administrator context menu item missing?

Post by gm10 » 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...

The sad part is xed is a pluma fork.

User avatar
Pjotr
Level 20
Level 20
Posts: 10961
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Open As Administrator context menu item missing?

Post by Pjotr » 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:
Tip: 10 things to do after installing Linux Mint 19 Tara
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 6
Level 6
Posts: 1337
Joined: Thu Feb 25, 2016 8:57 pm

Re: Open As Administrator context menu item missing?

Post by Schultz » Sun Jul 29, 2018 4:56 pm

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 19
Level 19
Posts: 9276
Joined: Tue Feb 03, 2009 10:27 am

Re: Open As Administrator context menu item missing?

Post by altair4 » Sun Jul 29, 2018 5:06 pm

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
Level 12
Level 12
Posts: 4116
Joined: Thu Jun 21, 2018 5:11 pm

Re: Open As Administrator context menu item missing?

Post by gm10 » Sun Jul 29, 2018 5:21 pm

^ 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
Level 1
Level 1
Posts: 8
Joined: Fri Jun 22, 2012 12:40 pm

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

Post by quonsar » Sun Jul 29, 2018 9:00 pm

Hey thanks all for the assist!

Post Reply

Return to “MATE”