it is not clear why the console RHEL7 shows ???????? instead of access rights

As you can see, the user is the owner, and has access to the folder, but cannot see the permissions normally. also can not "go" in the folder. root sees everything and everything can.

if you give 777 per folder, then the problem disappears

[dm@app524 ~]$ ll total 210004 drw-rw-rw- 4 dm dm 4096 Jul 21 15:12 config [dm@app524 ~]$ ll config/ ls: cannot access config/dm-notification.yml: Permission denied ls: cannot access config/dm-dynamics.yml: Permission denied ls: cannot access config/security: Permission denied ls: cannot access config/dm-admin-api.yml: Permission denied ls: cannot access config/dm-otp.yml: Permission denied ls: cannot access config/dm-db-app.yml: Permission denied ls: cannot access config/attachments: Permission denied total 0 d????????? ? ? ? ? ? attachments -????????? ? ? ? ? ? dm-admin-api.yml -????????? ? ? ? ? ? dm-db-app.yml -????????? ? ? ? ? ? dm-dynamics.yml -????????? ? ? ? ? ? dm-notification.yml -????????? ? ? ? ? ? dm-otp.yml d????????? ? ? ? ? ? security [dm@app524 ~]$ cd config/ -bash: cd: config/: Permission denied [dm@app524 ~]$ sudo -s [root@app524 dm]# ll config/ total 28 drw-rw-rw- 2 dm dm 4096 Jul 21 15:12 attachments -rw-rw-rw- 1 dm dm 139 Jul 21 15:12 dm-admin-api.yml -rw-rw-rw- 1 dm dm 129 Jul 21 15:12 dm-db-app.yml -rw-rw-rw- 1 dm dm 232 Jul 21 15:12 dm-dynamics.yml -rw-rw-rw- 1 dm dm 407 Jul 21 15:12 dm-notification.yml -rw-rw-rw- 1 dm dm 104 Jul 21 15:12 dm-otp.yml drw-rw-rw- 2 dm dm 4096 Jul 21 15:12 security 
  • 2
    The config directory has read permissions, but you do not have the permissions to enter the directory ( x ), but you can’t get information about them. - Mike
  • @Mike is any special rights? - Senior Pomidor
  • why special. ordinary for regular 'x' files permission to execute, and for directories it means permission to 'enter' - Mike
  • @Mike make a reply. - Senior Pomidor
  • corrected in the question: this is not a "mask of access rights". this is access rights. "mask" - this is about something else. - aleksandr barakin

1 answer 1

according to the documentation (available locally with the $ info "File permissions" "Mode Structure" command):

There are three kinds of permissions for you:
...
3. permission to execute the file (run it as a program). For directories, this means permission to access files in the directory.

free translation:

There are three types of permissions that a user can have for a file:
...
3. permission to execute the file (run it as a program). for directories, this means permission to access files in that directory.


This resolution is displayed as x . for example, the directory / this permission is set for all three categories of users: owner, group and all others.

 $ ls -ld / drwxr-xr-x 25 root root 4096 Jul 21 21:05 / 

add this permission for the owner of the file / directory:

 $ chmod u+x файл-или-каталог