ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ecs] Fwd: need help w linux issue
Neil Cherry
Thu, 20 Sep 2007 19:03:23 -0400

Mark Gilmore wrote:
> hi neil,
> the execute bits *are* set.

But that doesn't mean you can execute it. Really it has more to
do with the mount point. Instead of joking around I'll explain
better below.

> it appears that the mount access settings differ from that of the 
> directory being mounted.
> *very* weird.

Actually very normal for Unix. Here's an example:

$ mkdir -p a/b/c # This makes all 3 dirs with drwxrwxr-x
$ cp bin/ansi.color.sh a/b/c/
$ ls -l bin/ansi.color.sh a/b/c/
-rwxrwxrwx 1 njc njc 1123 Nov  5  2006 bin/ansi.color.sh

a/b/c/:
total 4
-rwxrwxr-x 1 njc njc 1123 Sep 20 18:52 ansi.color.sh
$ chmod a-x a/b # Turn off the execute permissions to everyone
$ ./a/b/c/ansi.color.sh
-bash: ./a/b/c/ansi.color.sh: Permission denied
$ bin/ansi.color.sh
----------------------------------------------------------------
ESC[0;Foreground;Background -
	:
	:

Then the rest of my shell script output. Basically if the
permissions aren't set at the lower levels then the program
can't be executed. In this case the noexec tells mount not to
set the execute bits at the mount point. Actually my description
is a bit abbreviated as the whole permission thing is a lot more
complex and I don't understand all the details.

-- 
Linux Home Automation         Neil Cherry       ncherry@linuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:    	Linux Smart Homes For Dummies

  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.