On Wednesday 25 Dec 2002 5:09 pm, Steve Jeppesen wrote:
> Merry Christmas list members,
>
> I am running Fluxbox windowmanager with Roxfiler filemanager (using
> a panel launcher for common apps) and my question is, how can I
> configure something like synaptic apt-get to run from a icon on the
> panel as a user?
>
> Apt-get requires root priv's to run.  The icon I have now just attempts
> to run /usr/sbin/synaptic, which I receive a error msg stating only root
> can run synaptic.
>
> MandrakeUpdate requires root priv's for example, and when it is run as
> a user, it prompts me for the root password.
>
> Is there a script (which I wouldn't know how to create) or a link or...
> which I could do in order for synaptic to run?
>
> I checked my menus to see what was configured for synaptic to run, and
> it shows for the command to run as;
> kdesu /user/sbin/synaptic
> which does not work for the icon I created on my panel.
>
> TIA for any help or ideas
> Steve

PAM (permissions access module does what you want)  To see how PAM can help 
take userdrake as an example.

/usr/bin/userdrake is a symlink to /usr/bin/consolehelper

consolehelper is an app which looks to see how it was called (via userdrake) 
and then looks in /etc/pam.d for a file of the same name. (I think if one 
does not exist it will default to the file /etc/simple_root_authen )

These files contain the tests which must be true in order to be allowed to 
execute the command. These tests may include putting up a pop up for you to 
enter root password. If all the tests are passed, then execution will pass to 
/usr/sbin/userdrake.real and the application then executes normally.

I have never spent much time looking at the syntax for the pam authentication, 
but if you look at the files already present you should be able to work out 
how to do what you want.

My website has an example showing how to get net_monitor running as a user.

HTH

derek
-- 
----------------------------------
www.jennings.homelinux.net

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to