Hi

Works for me:


: [EMAIL PROTECTED] ; 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 ();
        }
    }
}


: [EMAIL PROTECTED] ; mcs test3.cs
Compilation succeeded


: [EMAIL PROTECTED] ; 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

: [EMAIL PROTECTED] ; 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 <[EMAIL PROTECTED]>
/Erik

-- 
[EMAIL PROTECTED]
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to