zwwcn

Just another WordPress.com site

checking file permission on linux

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: