[Gambas-user] Gambas app run as root

Benoît Minisini gambas at ...1...
Sun Oct 3 17:25:46 CEST 2010


> Il domenica 3 ottobre 2010 15:04:15 Jussi Lahtinen ha scritto:
> > I looked your example just for interest.
> > It doesn't seem to work with Ubuntu 10.04 64bit.
> > 
> > There are two issues, maybe something with my system...
> > This is first time I used "*su*" (normally I use sudo) on this computer,
> > and it doesn't work...
> > *su -c 'whoami'*
> > gives;
> > *su: Authentication failure*
> > 
> > However *sudo whoami* works correctly.
> > Because of that, I replaced *su -c 'ls /root'* with *sudo whoami*.
> > 
> > But there is another problem. Shell doesn't wait for input for *su* or
> > *sudo *.
> > Result is *sudo: 3 incorrect password attempts*, before even textbox
> > appears.
> > 
> > Tested with Gambas2 revision 3124.
> > Jussi
> 
> I made this example just for 'su'. with 'su' it works, at least while
> the textbox in not "". Anyway, good to know.
> 
> Tested with:
> 
> Gambas 2.20
> Qt 3.3.8b
> Gtk 2.12.12
> 
> under KDE, so it uses gb.qt.
> 
> Regards.
> 

That is exactly the kind of examples you should put with the other gambas 
examples!

-- 
Benoît Minisini




More information about the User mailing list