PDA

View Full Version : Query regarding Linux file permissions.


Deimos
07-27-2007, 11:21 AM
Hi all

Got a query regarding permissions on Linux

I run a fansite for a mmorpg game called Ultima Online

They released a new client which was about 2.3gb in size and had it hosted at a few providers

I wanted to host the same file on my server to distribute to friends etc.

So I logged into the server via ssh and used WGET to grab the file into a web accessible directory

But, when trying to download said file, all you got was a permission denied message

I set the permissions to 777 on both the directory and the file itself, but no go
You could SEE the file by going to the directory itself from the web, but when you clicked on it to download, you'd get permission denied.

I even tried using chown deimos:deimos XXX.zip

But that didn't work either

Is there something obvious I'm overlooking?

encryption
07-27-2007, 01:43 PM
is the file presently hosted on a server that has WHM/CPanel ? if yes, try running

/scripts/chownpublichtmls

should fix your problem

Deimos
07-27-2007, 01:47 PM
Thanks alot, i'll give that a try :)