[Gambas-user] No Graphical sudo program found
Brian G
brian at westwoodsvcs.com
Thu Dec 30 17:07:01 CET 2021
There are a couple of projects in the farm, that allow a gambas program to act as a graphical sudo.
The app that gets a password is written in gambas and is called by the sudo -A
set environment variable to the Gambas pasword asker App you write
Env["SUDO_ASKPASS"] = GambasGraphicPasswordAsker ' get the name of this executable
sudo -A program_to_run_as_su
The -A will start the gambas password asker(can be any gambas graphics program)
The gambas password program that gets the password from the user does this
Print passwordbox.text ' the sudo askpass -A expects this app to print the password to std out
Hope this helps
"Failure is the key to success;
each mistake teaches us something" .. Morihei Ueshiba
Brian G
----- On Dec 30, 2021, at 7:26 AM, T Lee Davidson t.lee.davidson at gmail.com wrote:
> On 12/30/21 10:11, Gianluigi wrote:
>> Hi Benoit and All,
>>
>> one of our friend of the Italian Forum, using this code:
>>
>> Desktop.RunAsRoot("sudo apt-get autoclean")
>>
>> Gets this answer:
>>
>> No Graphical sudo program found
>>
>> What can we say to him?
>>
>> Here the system information: (*)
>>
>> Regards
>> Gianluigi
>> (*)|
>> |
>> |[System]|
>> ||
>>
>> |Gambas=3.15.2
>> OperatingSystem=Linux
>> Kernel=5.10.0-10-amd64
>> Architecture=x86_64
>> Distribution=Debian
>> Desktop=MATE
>> Theme=fusion
>> Language=it_IT.UTF-8
>> Memory=3801M|
>
> Perhaps he needs something like 'kdesudo' (for KDE-based desktops) or 'gksudo'
> (GTK). But, I do not know what the MATE desktop
> would use.
>
>
> --
> Lee
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
More information about the User
mailing list