-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 4 Jul 2007, Steffen Kaiser wrote:
# l /mnt/mailcache/shared/.testAccess -n total 24 drwxrws--- 5 31045 30005 4096 2007-07-04 15:53 ./ drwxr-xr-x 6 0 0 4096 2007-07-04 16:08 ../ drwxrwsr-x 2 31045 30005 4096 2007-06-21 12:19 cur/ -rw-r--r-- 1 31045 30005 17 2007-07-04 15:38 dovecot-acl -rw-rw---- 1 31045 30005 0 2007-07-04 15:53 dovecot-shared
I added chmod o+rx for testing purpose, just in case.
Hmm, it would be possibly interessting to know who is who ;-) # id dvtest2 uid=31022(dvtest2) gid=102(Debian-exim) groups=102(Debian-exim),30005(dvtestgrp)
The filesystem is a local, plain ext3 in Linux.
stracing the situation results in: read(0, "3 select \"Shared.testAccess\"\r\n", 3978) = 30 setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0 stat64("/mnt/mailcache/shared/.testAccess", {st_mode=S_IFDIR|S_ISGID|0770, st_size=4096, ...}) = 0 stat64("/mnt/mailcache/shared/.testAccess/cur", 0xbf8cb470) = -1 EACCES (Permission denied)
The permissions of both directories are the same, aren' t they? Why fails the 2nd stat(), but the 2st one succeeds?
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRovmzy9SORjhbDpvAQJ1pwf/bk/eltZQcVM4hmzKoxxccFbxFPTUshNk Ke1/pkldddSCVktLE3PgRN/5CvL0ESdVk/+RxljdlMzHS6lYbG+mL7NJDhmTUQXb EWdg2wHlwyaLLkfDFT7vt91SKxnTnpibNRY+fHnN8H6+jSCIFiMyM302V+eNf+Ah NY6MsXDBQ9KUw2byyG1PLzbvqDjfd0vvsYGqRBZO5GsSeO+smwx90D5I4fqas/2m WwrBvt90H4crO3gO1MXzh8DwvQBJ+brPrvCQs12C89d9xxjjHJRuVjSbcZqn5BMT tv7fAPew2Zs2r6zkGsfwEaHduCzSefmsNPtcK52dqdJFb/k9FibO8w== =EItU -----END PGP SIGNATURE-----