bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chmod g+w on directory causes script not to execute anymore


From: Bob Proulx
Subject: Re: chmod g+w on directory causes script not to execute anymore
Date: Thu, 29 May 2003 22:28:06 -0600
User-agent: Mutt/1.3.28i

Markus Wahl wrote:
> I am experiencing the strangest problem. Performing
> `chmod g+w`on a directory causes a script inside it
> not to execute anymore.

That would be strange.  It does not make sense.

> 20:48:31 markus ~/test>echo $USER
> markus
> 20:48:32 markus ~>pwd
> /home/markus
> 20:48:34 markus ~>l | grep test
> drwxr-xr-x    2 root     users        4096 May 29 20:44 test/
> 20:48:37 markus ~>cd test/
> 20:48:38 markus ~/test>l
> total 4
> -rwxr-xr-x    1 root     root           24 May 29 20:44 myTest*
> 20:48:40 markus ~/test>cat myTest
> #!/bin/sh
> echo testing
> 
> 20:48:41 markus ~/test>./myTest
> testing

So far so good.

> 20:48:43 markus ~/test>
> 
> So we see that the script is working. I then perform the change
> logged in as root. Therafter I try executing the script again
> (still as user markus):
> 
> 20:50:00 markus ~/test>echo $USER
> markus
> 20:50:02 markus ~/test>l .. | grep test
> drwxrwxr-x    2 root     users        4096 May 29 20:44 test/

Looks fine.

> 20:50:12 markus ~/test>./myTest
> ./myTest: Permission denied.

But then just right at the critical point you did not include enough
information to deduce what is failing. :-( What is the permission at
this point in time of ./myTest?  It appears from the error message
that you do not have permission to run it.  Without that information
it is impossible to say what is happening.  And what was the chmod
command that you ran?

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]