LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 01-17-2019, 10:11 AM   #1
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi 5.0
Posts: 167

Rep: Reputation: 23
most recent update/upgrade broke esudo


i am running 64-bit bodhi 5.0 and after my most recent update most programs (timeshift, gparted and gsmartcontrol) that require root access will not launch through esudo. strangely enough eepdater still launches just fine. trying to launch timeshift et al yields a warning that moksha cannot run the application. they all launch from the terminal just fine.

i did notice that there were some changes to polkit in the update. it seems to me there was some discussion a while ago that polkit and esudo are interrelated to some degree. i can dig that thread up if i need to.

to make sure it was the update which caused the issue, i went ahead and reset my system through timeshift. everything launched as usual. decided to update through eepdater since it gives the option to skip certain programs. i thought i chose all of the polkit options. however, after the re-update esudo is back on the blink.

i can obviously just reset with timeshift again, but was wondering if there was any way to update and figure out what the problem is with esudo. thanks in advance for any help
 
Old 01-17-2019, 11:42 AM   #2
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 105

Rep: Reputation: 117Reputation: 117
Does running esudo in a terminal work as in

Code:
esudo pcmanfm
If so esudo is not broke.

What do you mean by "they all launch from the terminal just fine."?

Are you launching them as appname or as esudo appname?

And lastly what is the complete list of programs you have installed that are unable to get root access?
 
Old 01-17-2019, 12:21 PM   #3
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 393

Rep: Reputation: 147Reputation: 147
ylee - i updated and upgraded all 3 laptops this am - not sure what to check since i know so little but for my needs they seem to be OK. esp the daily one i use. the others are off due to storms etc.

let me know if i need to check anything as a comparison if that will help.
 
Old 01-17-2019, 12:28 PM   #4
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 105

Rep: Reputation: 117Reputation: 117
Quote:
Originally Posted by hemlocktree View Post
ylee - i updated and upgraded all 3 laptops this am ...

let me know if i need to check anything as a comparison if that will help.
I updated bl5.0 from an just installed state to full dist-upgrade in a VM this morning just to test. esudo works fine. But nonetheless I sorta know what the OP's issue is. They have some programs installed that are trying to use pkexec and ... details omitted ... typically those types of programs don't play well with esudo. There are several ways of dealing with this issue.

However this is just a educated guess on my part I sorta want more info from the OP to make things clearer to me as to the issue and what they expect as a 'solution.'
 
Old 01-17-2019, 01:48 PM   #5
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 393

Rep: Reputation: 147Reputation: 147
no problem. :-)))
 
Old 01-18-2019, 02:22 PM   #6
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi 5.0
Posts: 167

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by rbtylee View Post
Does running esudo in a terminal work as in

Code:
esudo pcmanfm
yes, that particular command works. eepdater and tuxboot are the only two that launch esudo from clicking a gui shortcut and proceed to open.

Quote:
Originally Posted by rbtylee View Post
What do you mean by "they all launch from the terminal just fine."?

Are you launching them as appname or as esudo appname?
when i wrote my initial post i was launching them as sudo appname, but esudo appname also works.

Quote:
Originally Posted by rbtylee View Post
And lastly what is the complete list of programs you have installed that are unable to get root access?
gparted, gsmartcontrol, timeshift, synaptic package manager all fail to launch from their gui shortcuts (both favorites menu and applications menu) and produce a warning message that "moksha was unable to run the application", but do work when launched from the terminal with sudo. so root access is still available seemingly just not through the gui.

Last edited by cordx; 01-18-2019 at 02:49 PM. Reason: also formatting
 
Old 01-18-2019, 02:48 PM   #7
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi 5.0
Posts: 167

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by rbtylee View Post
They have some programs installed that are trying to use pkexec and ... details omitted ... typically those types of programs don't play well with esudo. There are several ways of dealing with this issue.
your mention of pkexec helped me track down the thread that i mentioned in my first post. it is here:

https://www.linuxquestions.org/quest...3/#post5918787

at that time, following Stefan's suggestion in post #9 to change the exec entry fixed the issue with gparted and gsmartcontrol as indicated in my later posts. i do not recall if timeshift or synaptic package manager had any issues at that time. your follow-up posts (15 and 18) were helpful (if well over my head technically) in understanding some of the interactions. i did not recall the specifics of that post or link the similar behaviors in my mind or i would have tried Stefan's solution again before posting this thread.

before replying here today i did tried this fix again, but it did not remedy the present issue.

Quote:
Originally Posted by rbtylee View Post
However this is just a educated guess on my part I sorta want more info from the OP to make things clearer to me as to the issue and what they expect as a 'solution.'
i feel like i understand what you meant in the 18th post of that other thread when you said "Bodhi is minimal meaning you are going to have to install some things, or load some extra modules or modify this or that to get some stuff to work."

part of the reason i have enjoyed my time using bodhi is that it has given me the opportunity to attempt modifications and tinker to the best of my somewhat limited ability. to that end i didn't post this with any expectations of a solution. i was just looking to see if someone could help (as stated in the initial post) point me in a direction to make things work like they did before the update.

you said there are ways of dealing with the issue and i am more than happy to try them

as ever, i appreciate yours and Stefan's presence here and willingness to lend a hand when and if you have the time and knowledge. thank you for your replies

Last edited by cordx; 01-18-2019 at 02:50 PM. Reason: formatting and grammar
 
Old 01-18-2019, 04:06 PM   #8
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 393

Rep: Reputation: 147Reputation: 147
glad you worked it out!
 
Old 01-19-2019, 06:39 AM   #9
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 105

Rep: Reputation: 117Reputation: 117
Quote:
Originally Posted by cordx View Post
...
i was just looking to see if someone could help (as stated in the initial post) point me in a direction to make things work like they did before the update.

you said there are ways of dealing with the issue and i am more than happy to try them

as ever, i appreciate yours and Stefan's presence here and willingness to lend a hand when and if you have the time and knowledge. thank you for your replies
OK this may not make things work exactly the same way they worked before but it is what I would do. So here goes:

First of all I suspect the package policykit-1 was updated and it overwrote a symbolic link created by the esudo package.


Before the update and as BL 5.0 is after installation: Click image for larger version

Name:	7XR6HpF.png
Views:	28
Size:	104.2 KB
ID:	29509 After the update of policykit-1: Click image for larger version

Name:	BaR9x91.png
Views:	41
Size:	91.6 KB
ID:	29510

So please verify this by running the command in a terminal:

Code:
ls -l /usr/bin/pkexec*
The output should look like the second picture. If it doesn't please run command :

Code:
sudo apt install --reinstall policykit-1
Now try the ls command above one more time. In theory it should look like the output in the second pic above.

I am assuming it does and going to the next step.

Now let's make your system use policy kit on apps that take advantage of this (ie apps that want to use pkexec) instead of trying to use esudo. We have to add PolicyKit Authentication Agent to the Mokshas startup program list.

Open Moksha's settings Panel: Menu ⟶ Settings ⟶ Setting Panel
And add it your startup programs as pictured below:

Click image for larger version

Name:	sBGpTSr.png
Views:	45
Size:	142.7 KB
ID:	29511

Be sure you click the Apply Button!

Now reboot. And all programs attempting to open as root using pkexec should work properly

I would prevent esudo from updating in the future unless absolutely needed. You should be able to do so by:

Code:
sudo apt-mark hold esudo
EDIT:

if you don't have PolicyKit Authentication Agent in Mokshas startup program list, then install policykit-1-gnome:

Code:
sudo apt-get install policykit-1-gnome

Last edited by rbtylee; 01-21-2019 at 05:31 AM. Reason: Added policykit-1-gnome
 
3 members found this post helpful.
Old 01-21-2019, 07:57 AM   #10
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi 5.0
Posts: 167

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by rbtylee View Post
First of all I suspect the package policykit-1 was updated
that was definitely included in the update. my ls output was as you suggested it should look in the second screenshot, so i didn't need to reinstall.

Quote:
Originally Posted by rbtylee View Post
Now let's make your system use policy kit on apps that take advantage of this (ie apps that want to use pkexec) instead of trying to use esudo. We have to add PolicyKit Authentication Agent to the Mokshas startup program list.
i am guessing that is the difference between the two authentication dialog boxes that pop up. one is obviously esudo Click image for larger version

Name:	shot-2019-01-21_06-25-31.jpg
Views:	5
Size:	17.4 KB
ID:	29537 and the other is pkexec Click image for larger version

Name:	shot-2019-01-21_06-24-49.jpg
Views:	6
Size:	57.4 KB
ID:	29540.

Quote:
Originally Posted by rbtylee View Post
Open Moksha's ... Now reboot. And all programs attempting to open as root using pkexec should work properly
as advertised, everything opens again! thank you so much for your help and clear step-by-step instructions.

Quote:
Originally Posted by rbtylee View Post
I would prevent esudo from updating in the future unless absolutely needed. You should be able to do so by:

Code:
sudo apt-mark hold esudo
done and done. i wasn't aware a program could be put "on hold". interesting thanks for the extra tip.
 
Old 01-31-2019, 06:45 PM   #11
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: ferenOS 2017.04, SolusOS, geckolinux
Posts: 157
Blog Entries: 12

Rep: Reputation: 26
OK. I did this once. Then I had to reinstall due to something else I did (stupid, or n00b). Upon reinstall, I did the --reinstall policykit-1. When I went to add it to my settings, PolicyKit Authentication Agent wasn't there. Now what? (And Grub Customizer does not run, something which this suggestion fixed.)

Oh, great. gDebi doesn't run either.

Last edited by zaivala; 01-31-2019 at 06:50 PM.
 
Old 01-31-2019, 06:49 PM   #12
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 393

Rep: Reputation: 147Reputation: 147
do not remember - but did you reboot the system and look for policykit?
 
Old 01-31-2019, 07:00 PM   #13
cordx
Member
 
Registered: Oct 2018
Location: san antonio, tx
Distribution: bodhi 5.0
Posts: 167

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by zaivala View Post
OK. I did this once. Then I had to reinstall due to something else I did (stupid, or n00b). Upon reinstall, I did the --reinstall policykit-1. When I went to add it to my settings, PolicyKit Authentication Agent wasn't there. Now what? (And Grub Customizer does not run, something which this suggestion fixed.)

Oh, great. gDebi doesn't run either.
did you do this last bit?

Quote:
Originally Posted by rbtylee View Post
if you don't have PolicyKit Authentication Agent in Mokshas startup program list, then install policykit-1-gnome:

Code:
sudo apt-get install policykit-1-gnome
 
Old 01-31-2019, 07:02 PM   #14
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 393

Rep: Reputation: 147Reputation: 147
did not catch that cordx. that could be it too.
 
Old 02-01-2019, 05:21 AM   #15
zaivala
Member
 
Registered: Mar 2008
Location: Blaine TN USA
Distribution: ferenOS 2017.04, SolusOS, geckolinux
Posts: 157
Blog Entries: 12

Rep: Reputation: 26
Quote:
Originally Posted by cordx View Post
did you do this last bit?
I will try this. Preferably before trying to reinstall again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BL5-32bit - eSudo in the menu missing madmax25 Bodhi 5 01-11-2019 07:44 AM
eSudo frezes tittilvero Bodhi 1 07-29-2018 08:17 AM
recent Ubuntu update broke the GRUB loader Hadryon Linux - Newbie 3 09-21-2010 07:49 PM
Recent Upgrade Broke Xscreensaver (solved) kevinbenko Debian 0 11-14-2008 12:37 PM
how do i upgrade kde to most recent version? webazoid Linux - Software 1 07-06-2004 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration