Not root access some directory permission denied

Issues related to applications and software problems and general support
Post Reply
User avatar
ejzhang
Posts: 3
Joined: 2019/11/02 04:07:32

Not root access some directory permission denied

Post by ejzhang » 2019/11/02 04:23:09

The rights and SELinux fcontext of the doc directory and fanruan directory in one directory, the doc can accessed and the fanruan can't accessed. I try to use "setenforce 0" to close the SELinux temporarily, but not ok. Why? Thank you very much!
权限被拒绝1.jpg
权限被拒绝1.jpg (186.92 KiB) Viewed 2033 times
权限被拒绝2.jpg
权限被拒绝2.jpg (139.43 KiB) Viewed 2033 times

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Not root access some directory permission denied

Post by lightman47 » 2019/11/02 12:19:34

At first glance it appears to be an ordinary permission (not an selinux) issue. Have you tried chmod 755 on these folders/files?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Not root access some directory permission denied

Post by TrevorH » 2019/11/02 12:44:19

Well you don't tell us where that directory is but all the files there appear to have selinux contexts on them that say they belong under /home. If those are NOT under /home then you need to run restorecon -RFv $thatdirectory to reset them to what they should be. Or alternatively, if those files are under /home then don't muck about with them as root, use the user they should belong to.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

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

Re: Not root access some directory permission denied

Post by aks » 2019/11/02 12:53:20

facls? Use getfacl to check.

Post Reply