-
Notifications
You must be signed in to change notification settings - Fork 119
No sudo prompt appearing on Ubuntu 18.04 & Electron 5.x #100
Comments
Also as an update, I'm able to manually run the following command as my user, and it works as expected. The prompt appears and it updates the modified date on the root owned file. /usr/bin/pkexec touch /etc/hosts |
UPDATE: I've done some further debugging and it seems that the command your package generates does seem to work when copying & pasting into the terminal.
So I wonder if there is something else going on causing the problem? My default user shell is |
Thanks @Muffinman for the detailed information, and for the copy of the actual command run by Would you please try running the Please would you also try running your own command above, but this time using a simple node script which requires And then the above, but using That will help to narrow things down further. |
Hi @jorangreef, thanks for coming back to me so quickly. I've done some testing tonight in the following conditions:
So it looks like the Electron wrapper is the thing which kills it, strange that this works great on OSX. I've just found https://github.com/automation-stack/electron-sudo so will give that a try and see if it works for my usecase. EDIT: Looks like this might be related: electron/electron#18521 |
Thanks @Muffinman Yes, electron/electron#18521 is definitely the culprit. You will then need to launch Electron in such a way as to disable Electron's new setuid sandbox. Electron might have an environment variable or option to do this. |
Closing this as an Electron 5.x sandbox issue. |
Are there any workarounds that can be used? |
This is an Electron issue. You will need to ask the Electron team here electron/electron#18521 if there any options to disable their setuid sandbox. |
Hi,
Version: 9.0.0
I'm having an issue with this package not showing the sudo prompt at all on Ubuntu 18.04.
Produces the following output:
As far as I can see my permissions on that file are all set OK?
Any ideas?
The text was updated successfully, but these errors were encountered: