0

This question already has an answer here:

I've got a folder that has 0600 chmod permission and this folder has a sh script. I'm trying to limit some permissions but I've realized that if the folder has not a execute permission, unless for the user, I can't access using cd command, so that I can't execute my script. The script has the proper permission (0700)

Is this right? I don't understand why. Could anybody explain me the function of execute permission in folders?

Thanks a lot!

marked as duplicate by muru, Eric Carvalho, Community Jan 14 '16 at 10:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

That's basically how it works - a directory has to have execution bit set to allow user/group member/others to enter it.

More interestingly - you don't really need read permissions on the directory to access file inside it - as long, as you know the file name, since you can't list contents of directories if you have no read permissions.

I think the key to understand it is to realize that in Linux/Unix there really is no such thing like directory. It's also a file - containing information about the other files - its contents.

Anyway - some reading about those basics will be a good idea, I'd say. This may be a good start: https://help.ubuntu.com/community/FilePermissions

  • Sin problema amigo. – Jacek Jan 13 '16 at 14:59

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