Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/a26f9f83/public_html/articles/includes/config.php on line 159
CHMOD - Undertanding File Permissions on a Unix-Based Server > NetSparsh - Viral Content you Love & Share

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.

In The News:

This RSS feed URL is deprecated, please update. New URLs can be found in the footers at https://news.google.com/news

PCMag UK (blog)

Yahoo Small Business Web Hosting - Review 2018 - PCMag UK
PCMag UK (blog)
Yahoo Aabaco Small Business has highly accessible site-building tools and respectable customer support, but it doesn't have the high-powered services many ...

and more »

BestTechie

How to not fail when starting a web hosting business
BestTechie
There's a multitude of web hosting services today as this business is quite profitable and the industry is growing rapidly. Because even a one second delay in website loading speed loses businesses up to 7% in conversions, ensuring the fastest and ...


Reuters

GoDaddy reports web hosting sales below estimates
Reuters
N) missed Wall Street estimates for sales from its highly profitable web hosting business, pushing its shares down 4 percent on Thursday. GoDaddy is the world's largest domain name registrar and manages about a fifth of all global web domains, but its ...
Free Report for GDDY - Zacks.comZacks

all 79 news articles »

PCMag AU (blog)

Yahoo! Small Business
PCMag AU (blog)
Getting started building a website can be tough. There are dozens of web hosting services out there, and comparing all the prices and features between them can be tedious. We do all that checking for you, however, and Yahoo Small Business leaves a fair ...


PCMag

Business Choice Awards 2018: Web Hosting
PCMag
To help you get the most out of your website, we asked our readers to evaluate rate their web hosting service. The highest rated earns our Business Choice Award. For more 30 years, we have been augmenting our hands-on, labs-based product reviews with ...


The Register

Brit web host biz UKFast gears up to IPO on London Stock Exchange
The Register
UKFast, a British web hosting provider and bringer of clouds, is planning to float on the London Stock Exchange with the aim of raising a £350m war chest, The Register can exclusively reveal. The Manchester-based business, which employs 350 staff and ...

and more »

BCW

US Web Hosting: What It Is And 5 Reasons You Need It | BCW
BCW
A web hosting service is a platform that permits companies and individuals to make their web page accessible globally through the global web. These services ...

and more »

The Importance of Choosing the Right Hosting Service for Your Website
EconoTimes
Every website needs a hosting service. It is the way your site is presented to the public. All of the work that you perform in an effort to create the best site you can will be wasted if you are using the wrong hosting service. In fact, the hosting ...


TechRadar

Our exclusive InMotion deal slashes the price of your new web hosting tool
TechRadar
It's time to grab yourself a stunning web hosting deal today that could make your dreams a reality. Thanks to a unique team-up between InMotion Hosting and TechRadar you have the chance to grab a deal that saves you money. With InMotion Power, you get ...


4 Tips for Deciding on an Ideal Web Hosting Plan | HostReview.com
HostReview.com (press release) (blog)
Choosing a web hosting plan is supposed to be extremely simple, yet many entrepreneurs who are new to the world of online business have a hard time wi ...

and more »
Google News

Free or Paid Web Hosting?

Just finished your first website? So it's the time to... Read More

Advanced Hosting for the Mission Critical Web Presence

As companies that conduct their business online have proliferated, hosting... Read More

Finding a Reliable Host

Finding reliable hosting for your business opportunity is no small... Read More

Web Site Design and Hosting

If you're looking for a professionally designed web site at... Read More

Nine Things To Know Before Selecting The Web Host For Your Business

It may seem simple yet it is often times overlooked.... Read More

Solving Common Problems with Hosting Companies

For those of you with Web sites, you probably know... Read More

Virtual Private Servers (VPS) Web Hosting

A Virtual Private Server (VPS), also referred to as Virtual... Read More

Changing to a New Host? No More Worries!

John's online business is expanding. His customers are increasing day... Read More

Why Dedicated Hosting?

If you're reading this article, you might be interested in... Read More

7 Key Points to Consider When Choosing a Web Host

With literally thousands of web hosting companies in the industry... Read More

Transferring Your Existing Website to a New Hosting Provider

You've already got a website, but your current hosting provider... Read More

How to Choose a Web Hosting Company?

Nowadays, anybody can afford to order a feature-packed web hosting... Read More

How to Choose a Web Host - Frequently Asked Questions

In this article you'll be provided with helpful information about... Read More

Virtual Web Hosting - What Is Virtual Web Hosting?

If your web site has outgrown its shared hosting solution,... Read More

Elements of Web Hosting

When you first start out trying to get a site... Read More

Managed Vs. Unmanaged Dedicated Hosting

"Unmanaged dedicated servers" - this is a pretty uninviting term... Read More

Web Hosting; Make Them Work for You

There are two main types of host providers. They are... Read More

Criteria of Choosing an Ideal Web Hosting Company

Before we talk about what it takes to... Read More

How to Achieve # 1 on Free Hosting

A domain name and paid hosting are considered essential for... Read More

Choosing Your Web Hosting Reseller Software

As a web host reseller, one of your most important... Read More

Budget Web Hosting - Dirty Secrets That Can Squash Your Websites Chance of Success

When it comes to budget web hosting, there are a... Read More

The 14 Point Web Hosting Checklist

How To Select A Web Hosting CompanyWhen starting out, it... Read More

Cheap Web Hosting ? Choose The Right Company

You have carried out the hard part and that's creating... Read More

The Top 10 Essential Ingredients of Every Linux Hosting Plan (Package)

Any website comprises the following ? Domain name, Webspace, Webpages.Lets... Read More

The Problem with Free Web Hosting Plans

In my opinion, free web hosting is one of the... Read More