Chmod - Undertanding File Permissions On A Unix-based Server
|
|
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.
|
|
|
Created & Maintained by Empower! CMS Web Sites
Host2Sell Web Hosting | Emarketing Workshops | Site SEO Review | FREE NewsletterProvide A Good Home For Your Website
Selecting a web hosting company is like sending one of your children off to college. You may have complete confidence in your son or daughter's abilities but unless they are placed in the proper environment they will not have the opportunity to thrive. Likewise, no matter how sophisticated or impressive the website you have designed may be, if you do not place the site where it can perform opt...(related: Web Hosting)
How To Choose The Best Web Host For You
Web Hosting is a service. Auto mechanics also provide a service. How would you decide which mechanic is best for you? P...(related: Web Hosting)
Top 5 Mistakes That May Drive Your Visitors Away In Less Than 2 Minutes
You took the leap. You set up a website to display your importantmessage. Congratulations! As in life, first impressions are importanton the web. Web researchers found that you have about 2 minutes tomake that first impression a good one. Visitors will judge your sitein those few seconds on its professionalism and appropriateness towhat they are looking for.In fact, a website can lose about one-third of it...(related: Web Hosting)
Dedicated Web Hosting Explained
Why is dedicated hosting such a big hit on the business web hosting market? If you look at the costs it involves, usually ranging from $150 - $1000 per month, another question comes into your mind: Does it even worth it?Why is dedicated hosting such a big hit on the business web hosting market? If you look at the costs it involves, usually ranging from $150 - $1000 per month, another question comes into your mind: Does it even worth it?When you have one single web server is rented to a single customer by the web hosting provider, you have dedicated web hosting. There are two similar solutions quite common too in the web hosting industry: virtual dedicated servers and co-location web hosting.To make it easier to grasp the concepts, a virtual d...(related: Web Hosting)
The 2 Sides Of Reseller Web Hosting
In the first case the customer is really looking for a large shared hosting plan that allows multiple domains. More frequently in the industry you see the term "Multi-Domain account" to refer to these plans. These customers can be webmasters with a network of websites, web designers, or a company that wants separate websites for their different brands. Most people doing business on the internet have more then 1 website. Hosting companies have recently taken notice to this and started offering "multiple domain" accounts. Before customers were left with the choice of a full blown Reseller plan, dedicated ser...(related: Web Hosting)
A Simple Guide To Web Hosting
Personal Computers, Servers Or ISP?You need a server to host your site so that it can be viewed over the internet. This server can either be an Internet Service Provider or of your own. Most websites are hosted by an Internet Service Provider because they can provide powerful server hardware, high speed connections and reliable server support.Most providers have very fast connections to the Internet such as a full T3 fiber-optic (45 Megabytes per second) connections which is about 1000 high speed (56 Kilobytes per second) modems combined.For those who are looking to set up their own servers and host their own ...(related: Web Hosting)
Choosing Your Web Hosting Reseller Software
As a web host reseller, one of your most important business decisions is your choice of web hosting control panel software. The web hosting software you use will save or cost you time, money, and frustration. What reseller control panel features will reduce your workload? What hosting software programs are integrated with the reseller control panel or work with it? What website control panel features will your clients like? In this article, we've compared four quality web hosting reseller software programs:AlabanzacPanelH-SpherePleskAll of these reseller control panels come with control panels for your clients. They all have numerous features - advanced email management, web statistics, pre-i...(related: Web Hosting)
Cheap Web Hosting Is No Bargain
Ever heard the saying "Penny-wise and Dollar-foolish"?Well bargain priced website hosting may just represent theperfect example of watching a jar full of pennies whilebucket loads of dollars fly out the window!When I launched my first website way back in the "dark ages"of 1997 I paid almost $150 a month in hosting and datatransfer charges.My web host watched how many files I uploaded like a hawkand always seemed...(related: Web Hosting)
Web Design And Hosting - Free Web Hosting Perks That Will Perk Up Your Web Site
If you've got or are considering a web hosting account with PHP and mySQL support, you'll find a wealth of free programs and scripts to take advantage of their powerful combined capabilities.Web hosting providers, from free to pricey, have always included some free pre-installed ...(related: Web Hosting)
How Multiple Server Hosting Impacts Your Websites Uptime
This article describes the technology behind multiple server hosting and how you may utilize it to maximize your site's security and ...(related: Web Hosting)
Switching Web Host
Moving a web site to a new host is not as difficult as you may think. If you follow the tips below carefully you should be fine and have your site up in no time at all.First Off:Do not get over excited when you see an extremely cheap hosting plan, look carefully at what the plan they provide and always read the terms and conditions for tricks or hidden fees. Define your own requirements before hand and look for a hosting plan that match closest to your soon to be old web host. A 24/7 support with phone support is a must! Try to find a host that uses the same operating system as your existing host. Get a web host that has a fast Internet connection and has fast servers and good up time (95.3, 99.0, etc)Scripts:Make sure if you use php, CGI, Perl or ASP that your new web host supports it. On php make sure they supp...(related: Web Hosting)
Webhosting Explained
Web hosts are service companies that provide space on their servers for internet users. Web hosts provide online systems for inte...(related: Web Hosting)
site-map - Copyright © 2006 Empower! Web Design | All Rights Reserved. | Web Hosting
