[Mono-list] Can't launch processes as normal user

Erik Bågfors erik@bagfors.nu
13 Mar 2003 20:00:55 +0100


Hi


Works for me:


: [bagfors@detrius]$ ; cat test3.cs
namespace hello {
    using System;
    using System.Diagnostics;

    public class hello 
    {
	public static void Main (string[] args)
	{
	    Process pt = new Process ();
	    pt.StartInfo.FileName="ls";
	    pt.StartInfo.UseShellExecute=false;
	    pt.Start ();
	}
    }
}


: [bagfors@detrius]$ ; mcs test3.cs
Compilation succeeded


: [bagfors@detrius]$ ; mono test3.exe
bug	    hello-world-gtk.cs~  magic.sh   test2.exe  test.cs
convert     helloworld-gtk.cs	 magic.sh~  test3.cs   test.exe
glade	    helloworld-gtk.exe	 test2.cs   test3.exe  ticc
glade-test  installer		 test2.cs~  test.c

: [bagfors@detrius]$ ; id
uid=501(bagfors) gid=501(bagfors) groups=501(bagfors)




On Thu, 2003-03-13 at 16:23, Pablo Baena wrote:
> Just to make myself clear.
> 
> Running this example:
> 
> 
> namespace hello {
>         using System;
>         using System.Diagnostics;
>          
>         public class hello 
>         {
>  
>                 public static void Main (string[] args)
>                 {
>                         Process pt = new Process ();
>                         pt.StartInfo.FileName="ls";
>                         pt.StartInfo.UseShellExecute=false;
>                         pt.Start ();
>                 }
>         }
> }
> as user, shows nothing, but running it as root shows the contents of
> the directory. It is just an example, I tried to see if it actually
> executes the command, and it doesn't as user.
> 
> I tried all the versions of mono from 0.19 to 0.23 and none of them
> worked.
> 
> Again: is this a bug or a new policy?
> 
> On Thu, 2003-03-13 at 03:56, Pablo Baena wrote: 
> > Hello! There was a time when I could launch processes with mono as a
> > normal user, but that isn't the case anymore. Now I have to be
> > logged in as root. Is it a bug or a new policy?
> > 
> > Regards!
> 
> -- 
> Pablo Baena <pbaena@uol.com.ar>
/Erik

-- 
erik@bagfors.nu
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32