0

This question already has an answer here:

Based on the suggested duplicate, let me reformulate my question:

If chmod 0660 path/to/folder is run, and user A isn't in the relevant group, could user A still read /path/to/folder/file.txt if that file has the appropriate octal?

marked as duplicate by slm Aug 11 '18 at 16:27

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.

2

If /path/to/dir has the permission bits 0660, then no-one can access /path/to/dir/file.txt, since no-one has the x permission on the directory dir. (In general, they can't even see the type, size or permission bits of file.txt, but some filesystems may reveal some of that data.) The owning user and members of the owning group can list the directory contents (the files within), since they have the r permission. The w permission isn't really useful without the permission.

See Execute vs Read bit. How do directory permissions in Linux work?

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