This question already has an answer here:

I have directory with rwx permission for current user, but he's unable to access it, why?

: sudo ls /usr/data/user-data  -lad
drwx------ 9 andrew andrew 4096 May 17 11:13 /usr/data/user-data

: whoami 

: ls /usr/data/user-data 
ls: cannot access '/usr/data/user-data': Permission denied

: touch /usr/data/user-data/test
touch: cannot touch '/usr/data/user-data/test': Permission denied


: sudo namei -lx /usr/data/user-data
[sudo] password for andrew: 
f: /usr/data/user-data
Drwxr-xr-x root   root   /
drwxr-xr-x root   root   usr
drwxr--r-- root   root   data
drwx------ andrew andrew user-data

marked as duplicate by muru, Community May 17 at 8:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • lsblk |grep user gives nothing, is that what you mean? – deathangel908 May 17 at 8:32
  • And permissions may be a problem anywhere up the chain (/usr/data as well). Add the output of namei -lx /usr/data/user-data, please. – muru May 17 at 8:32
  • @muru I attached the output – deathangel908 May 17 at 8:34
  • 4
    There you have it. /usr/data isn't accessible by anybody except root. No x permissions for anybody else. – muru May 17 at 8:34

Browse other questions tagged or ask your own question.