PDA

View Full Version : filesystem CHMOD


ChriSsY
Sat 26th Feb '05, 3:08pm
I've recently moved a large filesystem folder (10gb) to a new host, and now some of my members are getting upload write errors.

On uploading the filesystem i CHMOD'd the folder to 777 but all the subfolders are currently 755, due to the sheer amount of subfolders to run the command over FTP i always lose the connection.

Cant anybody give me a command i can use over SSH to do this?

Thanks in advance

f0urtyfive
Sun 27th Feb '05, 12:40am
uhhh.... chmod.

You probably dont want to do that though as it would allow every user to read/write every other users files... at least in those folders. + if you have anything that is run as root under their they could compromise your whole system.

Marc Smith
Sun 27th Feb '05, 12:47am
I'm assuming you keep your attachements in a directory outside the database.

chmod -R 777 /path/to/your/directory/attachments

Just did the same thing 2 weeks ago.

I <cd> to the directory above my attachments directory. The name of the directory I keep my attachments is (duh) 'attachments'.

My attachments directory is above my htdocs directory so people can't get to it via http. Then, for me, it's simply ssh in and:

chmod -R 777 attachments