CHMOD permisions

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

bhilai.co.in

Thread Starter
Joined
Oct 4, 2006
Messages
20
In order for the forum installation to work I need to CHMOD the directories Server Root & Forum Data Root in such a way that the webserver can write to them.
How do i do this?
How do i change permission on some of my files or directories?
How can i CHMOD a directory of file?
im using cute ftp
 
Joined
Jun 15, 2005
Messages
431
The best answer is probably to suggest that you read the man page for chmod.

But I'll try to give you a short answer.

There are two forms for the options to chmod. The easier form for me is the numeric.

$ chmod nnn filename

where nnn represents the desired permission mask, represented in octal (base 8). The first digit of the mask refers to the owner; the second digit to the group; and the third to all users.

Each digit represents an OR of all possible permissions, which are:

0 - no permission at all
1 - permission to execute (or in the case of directories, to search)
2 - write
4 - read

So, read+write = 6. read+write+execute=7.

It's very unusual to have write permission without read permission, so a typical permission mask for a directory to which owner and group can write, and everyone can read would be
664.

However, you generally want to be able to search directories, so 775 would be more appropriate.

Again, read the man page!
 

Squashman

Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
bhilai.co.in said:
In order for the forum installation to work I need to CHMOD the directories Server Root & Forum Data Root in such a way that the webserver can write to them.
How do i do this?
How do i change permission on some of my files or directories?
How can i CHMOD a directory of file?
im using cute ftp
I am so glad there is Google to find your answers in less then a second.
http://support.discusware.com/center/resources/howto/chmod.html

If you don't have shell access to do it at the command line, most FTP clients have that option built into them. You basically just right click the folder or filename and select the appropriate option from that list.
 
Joined
Jan 26, 2007
Messages
5
chmod +r FileOrDirectoryName ----- add read permission for anyone
chmod +w FileOrDirectoryName ----- add write permission for anyone
chmod +x FileOrDirectoryName ----- add execute permission for anyone
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top