::
Re: [DNG] why is polkit needed? dro…
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
Esta mensagem é parte da seguinte discussão:
a lista completa das discussões ordenadas por data
Aitor em
2020-02-23 12:33
Tito em
2020-02-23 13:15
Autor:
Aitor
Data:
2020-02-23 12:54
UTC
Para:
dng
Assunto:
Re: [DNG] why is polkit needed? dropin replacement
Hi,
On 23/2/20 13:17, Aitor wrote:
> The binary won't be suid, but rather it'll receive the root password
> through the mentioned unix socket using internally (sudo | su) afterwards.
As simple as that:
system( "echo <password> | sudo -S <application_name>");
I tested my first draft and it works. Do it simple, isn't it?
Aitor.