checking file permission on linux
September 28, 2015
Posted by on
I uploaded a file to the server but the file can’t be accessed from the website. I checked the permission and ownership they all look fine. Until I use ls-Z to check the file context, it shows me the problem: The filed was uploaded to a different folder first, so it retains the original type after I moving it the public folder. ll comand wouldn’t show the type details, we will have to use ls -Z and then use chcon command to change it.