Sample Header Ad - 728x90

Enter directory without knowing its name?

1 vote
1 answer
111 views
Suppose we have a user pepe who has a directory ~/pepe_cant_see in his home directory in which he possesses -wx permissions, and inside of this directory, another directory ~/pepe_cant_see/no_restrictions in which pepe has rwx permissions. Then pepe will be able to cd into the pepe_cant_see directory, but he won't be able to list its contents - so while in theory he can cd into no_restrictions, he wouldn't have any way of knowing that this directory exists or what its name is. My question is: if I'm in a directory where I lack reading permissions, but there exist other files/directories inside of this directory for which I have full permissions, is there any way to detect their existence? For example, is there a command that will allow me to enter a random/arbitrary directory from my CWD or edit a random/arbitrary preexisting file? (Note: this is purely out of curiosity, I have no reason to think this kind of thing would ever happen in practice.)
Asked by Franklin Pezzuti Dyer (111 rep)
Oct 23, 2022, 12:51 PM
Last activity: Oct 23, 2022, 01:41 PM