unsaid0415@szmer.info to Linux@lemmy.mlEnglish · 8 months agoYou can't cd or ls in a folder if you have no +x permissions on it. That is all. I wasted 3 hours of my life.message-square115fedilinkarrow-up1527arrow-down111
arrow-up1516arrow-down1message-squareYou can't cd or ls in a folder if you have no +x permissions on it. That is all. I wasted 3 hours of my life.unsaid0415@szmer.info to Linux@lemmy.mlEnglish · 8 months agomessage-square115fedilink
minus-squarelloram239@feddit.delinkfedilinkarrow-up14·8 months agols reaction to this is unexpected: $ mkdir foo $ echo Foo > foo/file $ chmod a-x foo $ ls -l foo ls: cannot access 'foo/file': Permission denied total 0 -????????? ? ? ? ? ? file I expected to just get a “Permission denied”, but listing the content it can still do. So x is for following the name to the inode and r for listing directory content (i.e. just names)?
ls
reaction to this is unexpected:$ mkdir foo $ echo Foo > foo/file $ chmod a-x foo $ ls -l foo ls: cannot access 'foo/file': Permission denied total 0 -????????? ? ? ? ? ? file
I expected to just get a “Permission denied”, but listing the content it can still do. So
x
is for following the name to the inode andr
for listing directory content (i.e. just names)?