When I do cd mydir I get this error:
-bash: cd: mydir: Permission denied
When I do ls -latr | grep mydir I get this:
drw-r--r-- 7 neubert neubert 4096 Jan 20 15:37 mydir
ie. I'm the owner of the directory and I have read permission, so why can't I access the directory?
If I do chmod -R 755 mydir I can then do cd mydir without issue but why wouldn't it work when the direcory permissions are 644?
Any ideas? I'm running Ubuntu 22.04 in WSL2 if that makes a difference.