Re: Linux 2.4.8-ac2

Håkan Wessberg (hakan.wessberg@it.gu.se)
Mon, 13 Aug 2001 14:19:36 +0200


[2.4.8-ac2]

This is the situation:
I have a script owned by a non-root user, it's chmod is 700.
as root I can read the content of the file, but I'm not able to execute
the script...

# ls -l touch.sh
-rwx------ 1 netsaint root 34 Aug 13 13:37 touch.sh

# ./touch.sh
bash: ./touch.sh: Permission denied

# sh touch.sh
this one works.

To me it looks like as root I have read/write permissions, but not
execute permission.
If I change the permissions from 700 to 755 I can execute the
script with ./touch.sh.

Maybe I'm doing something _really_ wrong here.

Cheers Nacka

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/