Il venerdì 20 marzo 2009 17:18:34 Ron_1st ha scritto: > On Friday 20 March 2009, Stefano Palmeri wrote: > > Hi, Benoit. Hi all. > > > > I've a little problem here. I can't feed the root password > > to a "su -c" process invocation. I've attached a little example. > > In a form there's a textbox. You type the root password, > > then you press 'Confirm' and you should be able to execute > > su -c 'cat /etc/sudoers'. But I can't. > > Any help appreciated. Thanks. > > > > Gambas 2.11.1 > > Slackware 12.2 > > > > Stefano > > If you use KDE Desktop use 'kdesu -c 'cat /etc/sudoers' > and for gnome there was/is 'gtksu -c 'cat /etc/sudoers' (SuSE) > > both should ask for the password of the guy that wants/need to do sudo > on the command line. > > > > Best regards, > > Ron_1st >
Yes, Ron. I knew about kdesu or gtksu, but I wanted a pure Gambas solution, just like the one Benoit and Doriano explained. Thanks anyway. Saluti, Stefano > > --------------------------------------------------------------------------- >--- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user