Can chmod on a directory without --recursive change who can read a file within that directory? [duplicate]

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
This question already has an answer here:
Execute vs Read bit. How do directory permissions in Linux work?
7 answers
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?
filesystems chmod gnu
marked as duplicate by slm⦠Aug 11 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.
add a comment |Â
up vote
0
down vote
favorite
This question already has an answer here:
Execute vs Read bit. How do directory permissions in Linux work?
7 answers
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?
filesystems chmod gnu
marked as duplicate by slm⦠Aug 11 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.
1
Renu, oh dear, I picked the wrong question on the duplicate... I meant this one: Execute vs Read bit. How do directory permissions in Linux work That's the one I was reading all along. My bad.
â ilkkachu
Aug 11 at 16:13
1
@ilkkachu - I switched it, thanks for catching this.
â slmâ¦
Aug 11 at 16:27
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question already has an answer here:
Execute vs Read bit. How do directory permissions in Linux work?
7 answers
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?
filesystems chmod gnu
This question already has an answer here:
Execute vs Read bit. How do directory permissions in Linux work?
7 answers
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?
This question already has an answer here:
Execute vs Read bit. How do directory permissions in Linux work?
7 answers
filesystems chmod gnu
filesystems chmod gnu
edited Aug 10 at 16:39
asked Aug 10 at 16:02
Renu
1063
1063
marked as duplicate by slm⦠Aug 11 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.
marked as duplicate by slm⦠Aug 11 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.
1
Renu, oh dear, I picked the wrong question on the duplicate... I meant this one: Execute vs Read bit. How do directory permissions in Linux work That's the one I was reading all along. My bad.
â ilkkachu
Aug 11 at 16:13
1
@ilkkachu - I switched it, thanks for catching this.
â slmâ¦
Aug 11 at 16:27
add a comment |Â
1
Renu, oh dear, I picked the wrong question on the duplicate... I meant this one: Execute vs Read bit. How do directory permissions in Linux work That's the one I was reading all along. My bad.
â ilkkachu
Aug 11 at 16:13
1
@ilkkachu - I switched it, thanks for catching this.
â slmâ¦
Aug 11 at 16:27
1
1
Renu, oh dear, I picked the wrong question on the duplicate... I meant this one: Execute vs Read bit. How do directory permissions in Linux work That's the one I was reading all along. My bad.
â ilkkachu
Aug 11 at 16:13
Renu, oh dear, I picked the wrong question on the duplicate... I meant this one: Execute vs Read bit. How do directory permissions in Linux work That's the one I was reading all along. My bad.
â ilkkachu
Aug 11 at 16:13
1
1
@ilkkachu - I switched it, thanks for catching this.
â slmâ¦
Aug 11 at 16:27
@ilkkachu - I switched it, thanks for catching this.
â slmâ¦
Aug 11 at 16:27
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
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?
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
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?
add a comment |Â
up vote
2
down vote
accepted
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?
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
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?
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?
edited Aug 10 at 16:52
answered Aug 10 at 16:45
ilkkachu
51k678140
51k678140
add a comment |Â
add a comment |Â
1
Renu, oh dear, I picked the wrong question on the duplicate... I meant this one: Execute vs Read bit. How do directory permissions in Linux work That's the one I was reading all along. My bad.
â ilkkachu
Aug 11 at 16:13
1
@ilkkachu - I switched it, thanks for catching this.
â slmâ¦
Aug 11 at 16:27