CHMOD - Undertanding File Permissions on a Unix-Based Server



Learn Web Hosting Help and Information on mps-web-hosting.com. CHMOD - Undertanding File Permissions on a Unix-Based Server article will help answer your questions on Web Hosting Help and Information.We at mps-web-hosting.com specialize in Web Hosting Help and Information. Web Hosting Help and Information at mps-web-hosting.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

The basic command for changing file permissions in unix based operating systems is the 'chmod' command. This command is executed with a set of parameters after it. With most FTP clients, you can simply select the filename you want to change the permissions of, right click, and choose the chmod command.

There are three main groups of permissions when dealing with the chmod command. The three groups are yourself or owner, your unix group, and everyone else. A typical chmod command would look like this - 'chmod 755' This allows you to add, remove or rename files as well as read or edit a file. It also specifies that your unix group and everyone else can only read and edit the file in question. They can't add, delete, or rename the file.

How the numbers in the chmod command work

There are three types of permissions that can be given to a file. They are read, write, and execute. The read permission is assigned a value of 4, the write permission is assigned a value of 2 and the execute permission is assigned a value of 1. So when a chmod command specified the digit 7 as the first number, it means that all three types of permissions are to be assigned to it. If a party is assigned a value of '0' then it means it has no rights whatsoever to a file. '6' tells the server that the user can read and write to the file but can't execute it. I think you get the idea.

Common permissions to set

Most of your html files will do fine with a permission of 644. Most script files will need a permission of 755. Any configuration files in a script package will often need a file permission of 777. Be very careful about assigning a file permission of '777' for everyone. With this permission, it means that anyone who gains access to your server will be able to add, remove, rename, read or edit the file. It is always a good idea with security in mind to assign the least amount of permissions necessary to get the job done.

An FTP client can keep things simple

Most people on shared servers will not have access to a command line to be able to use the chmod command. For most people, changing file permissions will be done through an FTP client. To do this, right click on the file you want to alter, and choose the chmod command. You will usually get a popup that will show nine checkboxes. The will be arranged in three rows. On the left you will usually see Read, Write, and Execute for the row headings. You can accomplish the same thing as typing in the numbers above by clicking on one, two or three boxes for each party. Once you're done, you click the apply or ok button and the file permissions will be changed.

If you keep in mind that you need to always go with the most restrictive file permissions possible that still allows your files to execute, and that there are three parties to define permissions for, you'll do fine. The three parties again are the owner, group, and everyone else.



WebMaster Media Maker. - Create Streaming Audio and Video with Media players that do not require a streaming media server.
How To Set Up A Web Server. - Instructions on how to set up your own web server from home.

FiveCubed hosting features both free and paid hosting plans. If you don’t need a lot of space, their free plan offers 125 megs of disk space and a little over a gig of datatransfer, which is pretty decent, considering that it is free. 1 MySQL database and 1 FTP account are included with the free [...]


Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31


More Articles:


1. Cheap Web Package Hosting - How to Minimize Costs
There are several steps you can take to help minimize costs with a web hosting package. Some require some effort on your part while others are simply a matter of common sense. No matter what your particular needs are, you'll likely find that there are companies out there offering web hosting with those needs in mind.The first and arguably the most important step as you seek to minimize costs with a web hosting package is to shop around. Comparison shopping is always a good way to save money, and…

2. Web Hosting: Price Vs. Quality By Paul Herbert
As the Internet expands, demand for different web-hosting services increases proportionally. Additional numbers of people are joining the web world every day with personal sites for their business or organization. Many people choose low-cost solutions to host their web site, but it if your web site is important to you, you should consider quality as much as price.For instance, putting your site on a low costs web host can affect the speed at which customers access it. Many surfers on broadband…

3. 4 Critical Things To Look Out For In A Web Hosting Service By Arvind Gawade
1. The reputation of the web hosting company.Most web hosting companies on the web have been in existence for at least 2 years and they are usually handled by experience and IT savvy network engineers who can provide the necessary support and services to their customers. However, there are also several “mom and pop” set ups out there which are handled by amateurs who are greedy to make plenty of your own money without even knowing how to do something as fundamental as setting up your user acco…

4. Choosing Between Free or Paid Web Hosting
There are a number of things to consider when choosing between a free or paid web hosting service. Setting aside cost for a moment, lets look at some factors that will help you make an informative decision.The very first thing you must consider is the intent or purpose of your website. Are you looking for a convenient way to share photos of family and friends? Or, are you considering something a little more complex such as adding multiple pages with different content on each? How about a websit…