Mailinglist Archive: yast-devel (128 mails)

< Previous Next >
Re: [yast-devel] Re: Help needed on how to run shell script as "root" in WebYaST webservice
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Mon, 22 Feb 2010 20:30:57 +0100
  • Message-id: <4B82DB71.4000605@xxxxxxx>
On 18.2.2010 13:53, Jiri Srain wrote:
Have a look here:

at the tutorial. It describes how to create a generic D-Bus service with an
example how to make it run a command (which is passed through the interface,
is not really secure). Hope you can use it.

Right now I am porting yast2-dbus-server from PolicyKit to polkit
(the successor of PolicyKit, actually it's a major redesign of PolicyKit with
incompatible API change) and I found that polkit package already contains a
wrapper for running scripts as root (or as any other user).

So you need only to create a *.policy file for the script and that's it.
No need to create a dedicated DBus service.

See 'man pkexec'.

Unfortunately polkit is not available in SLE11, so this is probably valid only


Best Regards

Ladislav Slez√°k
Yast Developer
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >