bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Markus Wahl
Subject: chmod g+w on directory causes script not to execute anymore
Date: Thu, 29 May 2003 20:57:13 +0200

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

See:


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
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/
20:50:12 markus ~/test>./myTest
./myTest: Permission denied.



Is there a workaround?

The contents of my /etc/fstab is:

20:51:31 markus ~>cat /etc/fstab
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home ext3 defaults 1 2
/dev/scd0 /mnt/cdrom auto user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 
0 0
/dev/hdd /mnt/cdrom2 auto user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 
0 0
/dev/hda8 /mnt/film ext3 defaults 1 2
/dev/hdb1 /mnt/film2 ext3 defaults 1 2
/dev/fd0 /mnt/floppy auto 
user,iocharset=iso8859-1,sync,codepage=850,noauto,exec 0 0
none /proc proc defaults 0 0
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0
20:51:32 markus ~>
Mvh,
Markus






reply via email to

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