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 549 times
权限被拒绝2.jpg
权限被拒绝2.jpg (139.43 KiB) Viewed 549 times

lightman47
Posts: 1163
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?
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

User avatar
TrevorH
Forum Moderator
Posts: 29171
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.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

aks
Posts: 3008
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

Return to “CentOS 8 - General Support”