What permissions are needed? I mean the minimum permission needed to actually cd into a directory.

It's just a general question I have. If someone has executable permissions is that enough to be able to access a directory via the CD command? Thanks!


x - execute - permission needed to cd into the directory.

r - read - permission needed to do a ls inside the directory.

w - write - permissions needed to create a new file (or sub-directory) inside the directory.

| improve this answer | |
  • 1
    you can create a new user and test it yourself. Create a new user by this command, sudo adduser newuser10, then you can switch between users with su - <user name> command. Now you can create a directory in one user, give it different permissions, switch to another user, and check what can changes are there. Assuming you can use sudo command. – sps Oct 12 '15 at 2:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.