Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Jussi Lahtinen
> Some systems do not use sudo. Maybe they find it unsecure. > Hmmm... I don't know any reason for sudo being insecure compared to su. Do you mean sudo exist, but it's use is restricted like su in Ubuntu..? Otherwise, if sudo doesn't exist then use "su -c", if this also fails, then I don't know

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread John Spikowski
On Mon, 2012-06-18 at 19:22 +0200, Benoît Minisini wrote: > Some systems do not use sudo. Maybe they find it unsecure. Dancing with Android Linux with root MIA and directory permission structures like a maze, is a challenge to say the least. Besides all that, I was able to get ScriptBasic running

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread tobi
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

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Benoît Minisini
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 Ubun

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Jussi Lahtinen
> 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

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Jussi Lahtinen
> As far as know, at least CentOS doesn't have a graphical authorisation > utility for sudo. > Seems so, weird. As far as I know, on some mandriva related distros with gnome desktops > installed, it still bumps the user privileges even if -c is used. > Also strange... Hmm. I have seen gks

Re: [Gambas-user] Access global variable from other .class

2012-06-18 Thread Bruce
On Sat, 2012-06-16 at 16:24 +0300, Jussi Lahtinen wrote: > > No, xdg-su is no longer part of xdg-utils. > > > > Do you know reason for this? No, I just look at the latest releases. > > > > > I have not used the xdg-su script for privilege escalation, but a quick > > (and I mean quick!) look th

Re: [Gambas-user] Access global variable from other .class

2012-06-17 Thread Benoît Minisini
Le 16/06/2012 03:44, Bruce a écrit : > On Sat, 2012-06-16 at 01:17 +0300, Jussi Lahtinen wrote: >> OK, got it. >> It's now "fixed" (actually xfce function was missing), tested and attached. >> >> Benoit, is this official part of xdg-utils..? Because I have that package >> installed, but not that sc

Re: [Gambas-user] Access global variable from other .class

2012-06-16 Thread Jussi Lahtinen
> No, xdg-su is no longer part of xdg-utils. > Do you know reason for this? > I have not used the xdg-su script for privilege escalation, but a quick > (and I mean quick!) look through it at it stands is not going to be a > great success. > Privilege escalation means exploitation, not use of

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread Bruce
On Sat, 2012-06-16 at 01:17 +0300, Jussi Lahtinen wrote: > OK, got it. > It's now "fixed" (actually xfce function was missing), tested and attached. > > Benoit, is this official part of xdg-utils..? Because I have that package > installed, but not that script. > > Jussi > Jussi, No, xdg-su is n

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread Jussi Lahtinen
OK, got it. It's now "fixed" (actually xfce function was missing), tested and attached. Benoit, is this official part of xdg-utils..? Because I have that package installed, but not that script. Jussi On 16 June 2012 00:23, Jussi Lahtinen wrote: > OK, I'm stupid. > Desktop.ScreenSaver.Activa

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread Jussi Lahtinen
OK, I'm stupid. Desktop.ScreenSaver.Activate() doesn't do anything because I have disabled screensaver, so the blank screen I see after 6 min idle, is actually monitor turning off. I will investigate what is wrong with xdg-su... Jussi On 15 June 2012 23:49, tobi wrote: > On Fri, 15 Jun 2012

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread tobi
On Fri, 15 Jun 2012, Jussi Lahtinen wrote: > > If I remember correctly, you can even save more work by using gb.desktop, > > Desktop.RunAsRoot() which > > builds on top of the portland xdg scripts. > > > > Before writing anything I should always check what gb.desktop contains... > > But there see

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread Jussi Lahtinen
> If I remember correctly, you can even save more work by using gb.desktop, > Desktop.RunAsRoot() which > builds on top of the portland xdg scripts. > Before writing anything I should always check what gb.desktop contains... But there seems to be bugs. I tried 'Desktop.RunAsRoot("whoami")'. All

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread tobi
On Fri, 15 Jun 2012, Jussi Lahtinen wrote: > Weird that there isn't any standard about this, or is there..? > I think every linux distribution should have link to it's graphical version > of sudo/su, with uniform name like GUIsudo. > Then you could always call it without knowing which environment i

Re: [Gambas-user] Access global variable from other .class

2012-06-15 Thread Jussi Lahtinen
Weird that there isn't any standard about this, or is there..? I think every linux distribution should have link to it's graphical version of sudo/su, with uniform name like GUIsudo. Then you could always call it without knowing which environment is used. Jussi On 14 June 2012 07:58, Bruce wr

Re: [Gambas-user] Access global variable from other .class

2012-06-14 Thread sundar j
n 2012 10:29:40 To: sundar_...@rediffmail.com, mailing list for gambas users <gambas-user@lists.sourceforge.net> Subject: Re: [Gambas-user] Access global variable from other .class On Thu, 2012-06-14 at 04:28 +, sundar j wrote: > I am trying to write a code for accepting user password

Re: [Gambas-user] Access global variable from other .class

2012-06-14 Thread Bruce
On Thu, 2012-06-14 at 04:28 +, sundar j wrote: > I am trying to write a code for accepting user password in a input > box/textbox when user click on button from main form. For user input i have > created new form named sudo.form and codes are in sudo.class file. This > sudo.class accepts use

[Gambas-user] Access global variable from other .class

2012-06-13 Thread sundar j
I am trying to write a code for accepting user password in a input box/textbox when user click on button from main form. For user input i have created new form named sudo.form and codes are in sudo.class file. This sudo.class accepts user password through textbox (hidden) and store it in global