On Sun, 3 Sep 2000, John Summerfield wrote:

>> 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.

I don't think I was clear here...  When a user wants to run a
root program *AS ROOT*, the open a terminal, and do:

su -
<enter password>
programname


What I am looking for is "click on the icon", up pops a dialog
box saying "Enter the root password", and if it is correct, the
program starts up - as root.  I do not want sudo or any other
solution.  I just want to use what is there allready.  For
example, the Kerberos config tool asks for root password.

I am still unable to find out how this is done.  The GNOME
launcher/shortcut thing has nowhere near the options the KDE
"kdelnk" files do.  I'm almost positive there is a simple way of
doing this in KDE.

I tried putting in a commanline like (su - ; myprog)
and it does not work either.  No way of telling what is wrong
either.

Right now I have to open a terminal, and then type:

su - -c myprog

That works, but it doesn't work when ran from an icon launcher
because SU gets ran in the background and no doubt sits in lala
land or dies on SIGTTIN....

What I'd really like is a bit of "do this, then do that, then
this, then put that there, and put this here".  I've looked at
the suggestions people have sent so far, and while I've learned
some useful new programs, I still haven't got what I need to
work.


--
Mike A. Harris                                     Linux advocate     
Computer Consultant                                  GNU advocate  
Capslock Consulting                          Open Source advocate

Want to run Microsoft Windows software in Linux?  You can!  VMware allows 
you to install and run other operating systems inside a window in X windows.
You can install Windows 95/98/NT/2000, FreeBSD, Solaris, and many more.
3D Games do not work yet, but virtually all office and productivity software
runs excellent.           http://www.vmware.com



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to