Open as Administrator option gone after upgrade

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Celcius1
Level 1
Level 1
Posts: 7
Joined: Mon May 18, 2020 8:30 am

Open as Administrator option gone after upgrade

Post by Celcius1 »

Hi Guys,

I'm by no means a real newbie to linux, but still new to mint 19.3

I just finished the process in upgrading my linux mint 18.3 install to mint 19.3 but after the upgrade, I lost my elevated privilege's I use simpify3d on my computer and when I run it I need to select open as administrator, but after the upgrade this right click option was gone.

I've tried adding myself to the sudoers group "done" tried changing permissions "done" but I cannot find any specific post relating to my issue.

I even tried resetting my account as an administrator, and still don't have the open as administrator option.

How did I loose this option and how do I go about resetting it?

for the moment I have a work around which is to open a terminal window, and go into root mode and run the launch script, but I need to update simpify and the *.run update file needs to be run as administrator and I dont have this option.

Some please tell me what needs to be fixed.

pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Open as Administrator option gone after upgrade

Post by pbear »

All three desktops support this function, but only Mate calls it Open as Administrator. Is that what you have?

Anyhoo, it's a glitch. Did you reinstall or upgrade in place?

Celcius1
Level 1
Level 1
Posts: 7
Joined: Mon May 18, 2020 8:30 am

Re: Open as Administrator option gone after upgrade

Post by Celcius1 »

Yes I run the MATE desktop. As it was the closest to Windows 7 at the time as I was a Windows convert.

But No I did not reinstall as it would have been a nightmare to get my machine back to normal, So I did an upgrade in Place.

But I have lost the option to easily in the GUI run specific things with root priviledges. And I need this to update my install of simplify 3d

User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Open as Administrator option gone after upgrade

Post by thx-1138 »

apt install caja-admin

norm.h
Level 5
Level 5
Posts: 593
Joined: Tue Mar 23, 2010 11:45 am
Location: Oxfordshire, UK

Re: Open as Administrator option gone after upgrade

Post by norm.h »

Is any of this viewtopic.php?p=1765628#p1765628 any help?

pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Open as Administrator option gone after upgrade

Post by pbear »

Try thx-1138's suggestion, of course. By the way, is Open as Administrator also missing from the File menu dropdown?

Celcius1
Level 1
Level 1
Posts: 7
Joined: Mon May 18, 2020 8:30 am

Re: Open as Administrator option gone after upgrade

Post by Celcius1 »

Yes the option has disappeared from the file menu drop down box.

But I did try thx-1138 suggestion did not work, but then I have not restarted my machine as yet

User avatar
Schultz
Level 7
Level 7
Posts: 1925
Joined: Thu Feb 25, 2016 8:57 pm

Re: Open as Administrator option gone after upgrade

Post by Schultz »

Open Synaptic and see if caja-gksu is installed.

Celcius1
Level 1
Level 1
Posts: 7
Joined: Mon May 18, 2020 8:30 am

Re: Open as Administrator option gone after upgrade

Post by Celcius1 »

norm.h wrote:
Tue May 19, 2020 11:51 am
Is any of this viewtopic.php?p=1765628#p1765628 any help?
I went through the suggestions they said, and no dice, did not come back, apparently a module called caja-gksu is missing, which allows this function, and is unable to be added back in that is supposedly removed by the upgrade, the user in that post basically formatted and reinstalled, I really do not have this option cause as it will take me up to 3 days to get all my settings back to as they were.

Celcius1
Level 1
Level 1
Posts: 7
Joined: Mon May 18, 2020 8:30 am

Re: Open as Administrator option gone after upgrade

Post by Celcius1 »

Schultz wrote:
Tue May 19, 2020 7:06 pm
Open Synaptic and see if caja-gksu is installed.
I checked this, and the module is not even available as an installable module

Celcius1
Level 1
Level 1
Posts: 7
Joined: Mon May 18, 2020 8:30 am

Re: Open as Administrator option gone after upgrade

Post by Celcius1 »

Did a bit of googling, and found this article, its been removed from Ubuntu as of version 18.04

https://www.maketecheasier.com/gksu-alt ... tu-bionic/

basically gksu is depreciated from UIbuntu 18.04 which version Mint 19.3 uses as a source, that is why it has disappeared, as gksu is no longer apart of the Ubuntu repository, it has been removed, that is why I have lost the ability to open as administrator, the people maintaining MATE need to update the administrator facility.

This now explains it, I'll never get it back until they fixed the depreciated facility.

User avatar
Schultz
Level 7
Level 7
Posts: 1925
Joined: Thu Feb 25, 2016 8:57 pm

Re: Open as Administrator option gone after upgrade

Post by Schultz »

I forgot about this. I switched to another distro a while ago (still use Mate though). This would definitely be a deal breaker for me if I were still using Mint. My advice would be to go back to 18.3, it's still supported till April 2021 (or switch distros).

pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Open as Administrator option gone after upgrade

Post by pbear »

FYI, Mate 19.x has the Open as Administrator option, it's just done differently now (well, has been for two years). Sounds like you have an upgrade-in-place glitch, for which I'm not entirely comfortable giving advice. What I would do in your case is take a manual Timeshift snapshot, then try different things, restoring after each one if it doesn't work. This way, at least you don't make it any worse.

Once you've done that, the first thing I'd try is apt purge caja, then apt install caja. Next I'd do the same thing with mate-polkit. At that point, if no one who actually knows the answer has appeared in the thread, I'd throw in the towel and reinstall. Or revert to 18.3 and wait for LM20.

all41
Level 16
Level 16
Posts: 6164
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Open as Administrator option gone after upgrade

Post by all41 »

The only way I have been able to re-enable the "Edit as Administrator" function
for 19.x is add pluma text editor

Code: Select all

apt install pluma
The caja-admin package depends on that--

Prove it--load Mate 19.3 live desktop, right-click on /etc/default/grub--no Admin option
then add the pluma package and repeat--there it is

Works
libera ab tyrannis

User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Open as Administrator option gone after upgrade

Post by thx-1138 »

Not on Mint 19.x currently, but yes, you do have to restart Caja (no, not the machine, just caja -q is enough).
Right-click admin text-editing works with pluma explicitly as all41 said. And as pbear also said,
maybe some dependencies got lost along the upgrade path (try apt install mint-meta-mate).

pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Open as Administrator option gone after upgrade

Post by pbear »

Maybe it works, but not because Caja needs Pluma. I don't have Pluma (Mate is the desktop I've always used on my primary Mint rig). Looking at its dependencies, I see mate-desktop-common, which in turn pulls in mate-desktop (among others). More likely, that's why it works.

all41
Level 16
Level 16
Posts: 6164
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Open as Administrator option gone after upgrade

Post by all41 »

Perhaps mate-admin should now point to xed instead of pluma
@pbear,
do you have root options in MATE 19.3 caja context menu without pluma package?
libera ab tyrannis

User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Open as Administrator option gone after upgrade

Post by thx-1138 »

Indeed, as all41 said, i'm also quite curious now. If answer is 'yes', then this must a nice Mint-specific 'touch' or something?
See caja-admin script itself & it's accompanying polkit file. Only Pluma is specified there,
and furthermore caja-admin in 19.x appears to come from Ubuntu / not from Mint repos, so i'm kinda puzzled now...

Granted though i've only tested caja-admin with older Mate 1.18 & Mint 18.3, not latter versions.
Wanted to 'prepare' / familiarize myself for...life-without-gksudo, hence the reason i fiddled in the first place.
Was actually trying to get it working with Geany instead afterwards (i don't even have xed installed here),
but declared defeat / failed miserably getting it to appear in right-click... :mrgreen:

User avatar
smurphos
Level 16
Level 16
Posts: 6741
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Open as Administrator option gone after upgrade

Post by smurphos »

all41 wrote:
Wed May 20, 2020 12:23 am
Perhaps mate-admin should now point to xed instead of pluma
@pbear,
do you have root options in MATE 19.3 caja context menu without pluma package?
The open as administrator is hard-coded in caja-admin to use pluma. It's straightforward to modify to use xed.

Install caja-admin

Code: Select all

apt install caja-admin
Open the caja-admins polkit rule in a text editor with elevated privileges

Code: Select all

xed admin:///usr/share/polkit-1/actions/org.freedesktop.caja-admin.policy
Find this line

Code: Select all

	<action id="org.freedesktop.pkexec.pluma">
Change to

Code: Select all

	<action id="org.freedesktop.pkexec.xed">
Find this line

Code: Select all

		<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/pluma</annotate>
Change to

Code: Select all

		<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/xed</annotate>
Save the file
Next open the extension itself in a text editor with elevated privileges

Code: Select all

xed admin:///usr/share/caja-python/extensions/caja-admin.py
Find this line

Code: Select all

PLUMA_PATH="/usr/bin/pluma"
Change to

Code: Select all

PLUMA_PATH="/usr/bin/xed"
Save the file.
Quit Caja

Code: Select all

caja -q
Done

caja-admin is a third party project - it's not developed by MATE or Mint. Ideally this needs a feature request to the Mint team to fork caja-admin and to provide the forked version that uses xed by default via the Mint repo.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

all41
Level 16
Level 16
Posts: 6164
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Open as Administrator option gone after upgrade

Post by all41 »

smurphos wrote:
Wed May 20, 2020 1:22 am
all41 wrote:
Wed May 20, 2020 12:23 am
Perhaps mate-admin should now point to xed instead of pluma
@pbear,
do you have root options in MATE 19.3 caja context menu without pluma package?
The open as administrator is hard-coded in caja-admin to use pluma. It's straightforward to modify to use xed.

Install caja-admin

Code: Select all

apt install caja-admin
Open the caja-admins polkit rule in a text editor with elevated privileges

Code: Select all

xed admin:///usr/share/polkit-1/actions/org.freedesktop.caja-admin.policy
Find this line

Code: Select all

	<action id="org.freedesktop.pkexec.pluma">
Change to

Code: Select all

	<action id="org.freedesktop.pkexec.xed">
Find this line

Code: Select all

		<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/pluma</annotate>
Change to

Code: Select all

		<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/xed</annotate>
Save the file
Next open the extension itself in a text editor with elevated privileges

Code: Select all

xed admin:///usr/share/caja-python/extensions/caja-admin.py
Find this line

Code: Select all

PLUMA_PATH="/usr/bin/pluma"
Change to

Code: Select all

PLUMA_PATH="/usr/bin/xed"
Save the file.
Quit Caja

Code: Select all

caja -q
Done

caja-admin is a third party project - it's not developed by MATE or Mint. Ideally this needs a feature request to the Mint team to fork caja-admin and to provide the forked version that uses xed by default via the Mint repo.
Hey smurphos thank you--I've wanted this for some time now without needing to pluma. Implement tomorrow though, a few Jameson's with friends (socially distanced) tonight :)
libera ab tyrannis

Post Reply

Return to “Newbie Questions”