--------
> I'm packaging up a package that will have a GNOME icon placed on
> the GNOME menu's. It *MUST* be run as root however, and I want
> the GNOME launcher that fires it up to first "su" to root, or
> some other mechanism. I'd prefer a nice GUI dialog box popup
> that prompts for the root password, and then runs the program as
> root. This will be clicked on by non-root users, who will then
> enter the password and it starts up.
>
> I have tried to make such a launcher to no avail. Seems to me
> KDE allows you to pop up a dialog to logon for "su". I could be
> wrong though...
>
> Any idea of how to do this? It is possible I suppose with a
> terminal window running su, or something but that is incredibly
> messy looking. I want it to look nice.
>
The su command (as patched by RHI) always prompts for a password; it can't be
made to take redirected input.
I think the whole idea of users knowing root's password is flawed. What YOU
need is the ability to say "These users can use THIS program. but they cannot
do other superuser things."
sudo may help; I'm not familiar with it.
Otherwise, you could write yourself a setuid wrapper that checks whether the
invoking user is allowed to use it; logs & terminates if not, logs & runs it
if the user is.
You cannot write it in bash, but you CAN do it in perl. Or C.
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list