Recover Directory Traversal
Quest: recover-directory-traversal
Mission
Remove and restore owner execute permission on an owned directory, then explain why entering it failed.
Commands You Will Use
mkdirchmodcd
Steps
- Run
cd ~/playground. - Run
mkdir -p no-enter-demo. - Run
chmod u-x no-enter-demo. - Try
cd no-enter-demo; it should fail. - Run
chmod u+x no-enter-demo. - Run
cd no-enter-demo; it should now work. - Answer the guide: why did the first
cdfail?
Hints
- Directory
xmeans traversal, not running a directory as a program. - Work only inside
~/playground. - Never remove execute permission from
~,~/src, or~/.ssh.
If Check Fails
Run the remove-and-restore chmod commands for no-enter-demo, then explain that directory execute permission permits traversal.

Linux Foundations