On Mon, 18 Jun 2012, Benoît Minisini wrote:
> Le 18/06/2012 19:15, Jussi Lahtinen a écrit :
> >> Maybe it would be possible to write a graphical su entirely in Gambas?
> >> The first difficulty I see is how to know if we must use 'su' or 'sudo'
> >> to run the command...
> >>
> >>
> > I have never run into need for su, I always use sudo.
> > Example in Ubuntu as default, you cannot do "su root".
> > So su is useful only if you need to change to some other user, but the
> > keyword in Gambas is RunAsRoot.
> >
> > Is there something where sudo would fail?
> >
> > Jussi
> 
> Some systems do not use sudo. Maybe they find it unsecure.
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

So, it was talked about a pure Gambas way of asking for the password. To 
address Benoît's recent
thought: Why not have a form like this:

+Run as Root---------------------+
|                                |
| Choose method: [ComboBox:    ] |
|                 | Sudo      |  |
|                 | Su        |  |
|                                |
| Password: [TextBox...        ] |
|                   [Button: OK] |
+--------------------------------+

This way, the experienced, aware user could choose (not really if it was 
detected by the class that
no "sudo" was found in PATH...) and the others most likely have sudo installed.
It would equally well end the discussion of the preferred graphical frontend - 
only disadvantage I
can see: in this draft, there is no configuration possible, except for the 
method of privilege
elevation.

Regards,
Tobi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to