Bug 44755 - chmod fails on . when there is no execute permission
chmod fails on . when there is no execute permission
Product: Red Hat Linux
Classification: Retired
Component: fileutils (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-06-15 21:23 EDT by caret
Modified: 2007-04-18 12:33 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-06-22 22:00:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description caret 2001-06-15 21:23:38 EDT
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:

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

Additional info:
Comment 1 Michael Schwendt 2001-06-22 22:00:52 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.