I can't open a directory with username
even after taking ownership & giving it all permissions:
sudo mkdir /path/to/the/directory/
sudo chown -R username:username /path/to/the/directory/
sudo chmod -R 777 /path/to/the/directory/
I get:
$sudo ls -al /path/to/the/directory/
total 0
drwxrwxrwx 1 username username 0 nov 16 15:13 .
drwx------ 1 root root 208 nov 16 15:13 ..
$ ls -al /path/to/the/directory/
ls: cannot access '/path/to/the/directory/': Permission denied
What could be going on?
Best Answer
You have no rights on the parent directory
You must have the x rights on the parent directory to pass thru this directory
to do that :