Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

How to get superuser rights

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krisztián Nagy

Hi Lazarus list,

I've got a simple question. I'm writing a little app with lazarus for linux which executes some terminal commands through fpSystem(). I need superuser rights for this so my question is that how can I acquire them in a lazarus app (in a visual way)? In other apps here the screen fades a bit and a dialog appears asking for the password (this is from the OS/display manager and not from the app itself). Where do I find the API for this?
(I can workaround the issue in some ugly ways but I would be pleased to find the clear solution)
I'm using ubuntu 10.04 with gnome.
Thanks in advance!

Kriszti?n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100728/e020a5da/attachment-0001.html>

Reply by email

Mattias Gaertner
to Krisztián Nagy
Show quoted text 13 lines
Hi Lazarus list, I've got a simple question. I'm writing a little app with lazarus for linux which executes some terminal commands through fpSystem(). I need superuser rights for this so my question is that how can I acquire them in a lazarus app (in a visual way)? In other apps here the screen fades a bit and a dialog appears asking for the password (this is from the OS/display manager and not from the app itself). Where do I find the API for this? (I can workaround the issue in some ugly ways but I would be pleased to find the clear solution) I'm using ubuntu 10.04 with gnome. Thanks in advance!

Maybe gksudo can help.

Mattias

Reply by email

Krisztián Nagy
to Marco van de Voort

Thank you for the answers!
gksudo is what I was looking for, it seems this was a significant gap in my knowledge. As the program is for personal use it doesn't matter that it's system specific. However, I may also look into that PolicyKit sometime later.

regards
Kriszti?n

2010/7/28 Marco van de Voort

Show quoted text 17 lines
On Wed, Jul 28, 2010 at 10:32:43AM +0200, Sven Barth wrote: > Am 28.07.2010 09:59, schrieb Mattias Gaertner: > > Maybe gksudo can help. > > gksudo might be system specific. What about PolicyKit, which is from > FreeDesktop and thus tries to standardisize such tasks: > http://www.freedesktop.org/wiki/Software/PolicyKit (it's used on Ubuntu > as well) Is it an installable package or in base on Ubuntu? -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100728/9c7eff17/attachment-0001.html>

Reply by email

Sven Barth
to Marco van de Voort: Is it an installable package or in base on Ubuntu?
Marco van de Voort wrote 10 lines
On Wed, Jul 28, 2010 at 10:32:43AM +0200, Sven Barth wrote: > Am 28.07.2010 09:59, schrieb Mattias Gaertner: >> Maybe gksudo can help. > > gksudo might be system specific. What about PolicyKit, which is from > FreeDesktop and thus tries to standardisize such tasks: > http://www.freedesktop.org/wiki/Software/PolicyKit (it's used on Ubuntu > as well) Is it an installable package or in base on Ubuntu?

According to ubuntuusers.de it's installed by default on Ubuntu and Xubuntu (since Hardy if I got that right). On Kubuntu it must be installed manually.

Regards,
Sven

Reply by email