Categories
- Arts & Entertainment
- Business
- Communications
- Computers
- Culture & Society
- Disease & Illness
- Fashion
- Finance
- Food & Beverage
- Health & Fitness
- Hobbies
- Home & Family
- Home Based Business
- Internet Business
- Adsense
- Affiliate Programs
- Affiliate Revenue
- Auctions
- Audio Streaming
- Autoresponders
- Banner Advertising
- Blogging
- Click Bank
- Directories
- Domain Names
- Ecommerce
- Email Marketing
- Ezine Publishing
- Forums
- Internet Marketing
- Link Popularity
- List Building
- Podcasting
- PPC Advertising
- RSS
- Security
- SEO
- Site Promotion
- Spam Blocker
- Technologies
- Traffic Building
- Tutorials
- Video
- Video Streaming
- Viral Marketing
- Web Design
- Web Development
- Web Hosting
- Webmasters
- Legal
- Pets & Animals
- Politics
- Product Reviews
- Recreation & Sports
- Reference & Education
- Religion
- Self Improvement
- Shopping
- Travel & Leisure
- Vehicles
- Writing & Speaking
Information
CHMOD - Undertanding File Permissions on a Unix-Based Server
Submitted: 2007-01-17 15:02:55
Print this article | Tell a friend | For publisher |
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.
This article was written by Joe Duchesne, president of http://www.yowling.com/, a web hosting company that specializes in helping online business owners increase their website traffic. Copyright 2004 Yowling. Reprint Freely as long as you link back to my website from this resource box.
Article source: Expert Articles
Most Recent Articles in Web Hosting category
- Getting Ranked By Google - By: James Betchley
Once you have created your web site you need to get Ranked by Google and the other search engines, and more importantly, ranked highly in Google and the Search Engine Result Positions SERPs. Search engine optimization (SEO) has been compared to an art form, and while it is true that due to the changing ranking algorithms of Google and the major search engines it is not an exact science, but there are some tried and tested methods which will help you towards that coveted first page position. - Web Hosting the 6 Factors You Need to Consider - By: James Betchley
The webhosting market is flooded with tens of thousands of different webhosts all offering lots of choices, so how do you decide? The truth is 80% is these hosts all offer great hosting and to avoid the 20% that don't you just need to follow the following 5 steps. - Tips for reseller web hosting - By: Gardner Wilkinson
The term 'reseller web hosting' may seem a little confounding. But, reseller web hosting is a popular way of making money by selling hosting plans. These packages are meant for small companies that do not have their own hosting servers, but take the server space from a parent company and resell it on their behalf. - Why You Need a Paid Web Hosting - By: Mike Bowden
Lots of web hosting service providers are offering identical packages today. And hence it will be difficult for you to choose the right web hosting service for your web site. Choosing the best suited web hosting plan is very important for a smooth running web site. - The Different Types of Web Hosting - By: Mike Bowden
Choosing the right web hosting entirely depends on your web site needs. There are lots of web hosting solutions that are available today. Therefore it is very important to research and evaluate the different web hosting services to pick the correct one. - Choosing the Right Web Hosting - By: Mike Bowden
Web hosting can be defined in a simple form, as the space provided on a web server for storing the collection of files related to a web site. A web site is a combination of various files and text linked together with the help of HTML or other programming languages. - Cheap Web Hosting Versus Expensive Web Hosting - By: Joel McLaughlin
Today we are going to compare a few of the differences that you can find when it comes to cheap web hosting and expensive web hosting. - Features To Look For When Buying Cheap Web Hosting - By: Joel McLaughlin
Just because a company offers cheap web hosting does not mean that their service is no good. In fact, some of the best web hosting companies out there actually offer great prices on their web hosting. - Who Uses Cheap Web Hosting Services - By: Joel McLaughlin
Not everyone is able to afford the top of the line web hosting, thus, people like to use cheap web hosting. The important thing to remember is that cheap web hosting does not always mean bad web hosting. - Cheap Web Hosting That Focuses On Customer Service - By: Joel McLaughlin
It can be hard starting up your own web page for the first time. If you have never started up a web page before, then you are more than likely going to have a lot of questions before you get started.
