Can not access directory with 777 permissions set

Support for security such as Firewalls and securing linux
Post Reply
Mopbucket
Posts: 1
Joined: 2020/12/08 15:25:35

Can not access directory with 777 permissions set

Post by Mopbucket » 2020/12/08 15:58:26

I have created a directory on a CentOS 7.6 OS. I have provided this directory 777 (drwxrwxrwx) permissions recursively at the root level of the directory. The owner is root, the group is testers. I have added users to the testers group but all users added will get permissions denied when attempting to access them through either the terminal or GUI (Big X on folder). When logged in as root I indeed verify that 777 is applied to all files and folders within the directory.
I am also observing that I can not su to root from any user as well. Not sure if these could be related. I imagine there is something simple that I am missing but do not know what it is. Does anyone have any ideas on what I can do to try to and figure this out?

aks
Posts: 3054
Joined: 2014/09/20 11:22:14

Re: Can not access directory with 777 permissions set

Post by aks » 2020/12/10 17:37:44

Sure you haven't gone and changed permissions across the whole tree?
What does ls -lh $(which su) give you?

tunk
Posts: 900
Joined: 2017/02/22 15:08:17

Re: Can not access directory with 777 permissions set

Post by tunk » 2020/12/11 15:42:59

Some time ago I had a problem with hidden characters
in some directory names. I checked it this way:
ls -1 | grep name-of-directory | od -Ad -tc

Post Reply

Return to “CentOS 7 - Security Support”