From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.5-15 i686; Nav) Description of problem: Trying to change the modes of the current directory fails if there is no execute permission on the directory (as a non-root user). How reproducible: Always Steps to Reproduce: (As a non-root user): "mkdir x", "cd x", "chmod 600 .", "chmod 700 ." Actual Results: Fails with the error: "chmod: getting attributes of `.': Permission Denied" Expected Results: So set the file permissions as expected, without complaint. Additional info:
After "cd x; chmod 600 ." you're in a directory which you may not access (x) any longer. Try "ls" or "cd ..". It will give the same "permission denied" error. Specifying the full path when changing permissions fixes this. Or leave that directory first.