Folder Permissions


#1

Hi guys, thanks in advance for any help.

How do i change the folder permissions on one of my web folders? i want to make it writable so i can write a backup file to it from my forum software.

Cheers
28


#2

Many ftp clients have the ability to set/change permissions, though you will have to look at the “help” or documentation of your client to see exactly how that is done in your program.

You can also use the “chmod” program from a shell prompt, after logging into the shell with an ssh client.

You didn’t say what forum software you were using, but remember that Dreamhost runs cgi under suexec (which means that cgi runs as, and with the same permissions as, your user). For most software, this means that 755 is the permission you should have set on directories you need the software to be able to write to (even if the software’s instructions say something else, like 777 or 666)!

–rlparker


#3

The DreamHost web based FTP client allows you to change the permissions on files/directories.

Simply log-in, tick the appropriate files/directories, then click the Chmod button.

Mark


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )


#4

Thank you!

so simple, yet that would have taken me ages to work out. My ftp client didn’t have such a feature.


#5

Actually i have one more question. How do i find the true full path of a folder on the server? i.e. how do i find out what the higher dir’s are?


#6

The full path of any file in your users home directory will be /home/username/filename , of-course you need to replace username with your actual username.

For example; If your username was fred and you had a file called somefile.txt in the sub-directory domain.com of your home directory, the full path would be /home/fred/domain.com/somefile.txt

Mark


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )


#7

Thanks again Mark!

I actually kind of found that one out at the same time you posted. I got an ssh client and had a little look around. But thanks for the quick and clear answers…

J.