Not root access some directory permission denied

Issues related to applications and software problems and general support
Post Reply
User avatar
ejzhang
Posts: 1
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 450 times
权限被拒绝2.jpg
权限被拒绝2.jpg (139.43 KiB) Viewed 450 times

lightman47
Posts: 999
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?
Multple login IDs are not your friend when asking for help!

User avatar
TrevorH
Forum Moderator
Posts: 27125
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!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

aks
Posts: 2859
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”