[rust-dev] executing error

Mic mictadlo at gmail.com
Fri Apr 6 14:00:58 PDT 2012


Hello,
Thank you, but I get still permission denied.

$ umask
0022
$ chmod +x hello
$ ./hello
bash: ./hello: Permission denied
$ ls -ahl
total 32K
drwx------  2 mictadlo mictadlo 4.0K Apr  6 23:54 .
drwx------ 27 mictadlo mictadlo 8.0K Jan  1  1970 ..
-rw-r--r--  1 mictadlo mictadlo  14K Apr  6 23:49 hello
-rw-r--r--  1 mictadlo mictadlo   77 Apr  6 23:46 hello.rs

$ rustc -v
rustc 0.2
host: x86_64-unknown-linux-gnu

I am using Sabayon linux 8 64 bit.

On Sat, Apr 7, 2012 at 1:16 AM, Rick Richardson
<rick.richardson at gmail.com>wrote:

> Also, out of curiosity, what is your umask?   and if you  'chmod +x
> hello'  does it work then?
>
>
> On Fri, Apr 6, 2012 at 11:08 AM, Rick Richardson
> <rick.richardson at gmail.com> wrote:
> > Your code works perfectly for me (except there are two newlines
> > between each print (the \n is redundant))
> >
> > What is your platform and rustc version?
> >
> > On Fri, Apr 6, 2012 at 9:53 AM, Mic <mictadlo at gmail.com> wrote:
> >> Hello,
> >> I am getting by executing the bellow code with Permission denied
> >>
> >> fn main() {
> >>         for i in [1, 2, 3] {
> >>                 io::println(#fmt("hello %d\n", i));
> >>         }
> >> }
> >>
> >> $ rustc hello.rs
> >> $ ./hello
> >> bash: ./hello: Permission denied
> >> $ ls -ahl
> >> total 44K
> >> drwx------  2 mictadlo mictadlo 4.0K Apr  6 23:49 .
> >> drwx------ 27 mictadlo mictadlo 8.0K Apr  6 23:43 ..
> >> -rw-r--r--  1 mictadlo mictadlo  14K Apr  6 23:49 hello
> >>
> >> What did I do wrong?
> >>
> >> Thank you in advance.
> >>
> >> Cheers,
> >>
> >> _______________________________________________
> >> Rust-dev mailing list
> >> Rust-dev at mozilla.org
> >> https://mail.mozilla.org/listinfo/rust-dev
> >>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120407/0139ec2e/attachment.html>


More information about the Rust-dev mailing list