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

ZDNet

Open source web hosting software compromised with DDoS malware
ZDNet
The provider of an open-source hosting panel software admitted yesterday to a security breach during which an unknown hacker contaminated the project's source code with malware that logs passwords, open shells, and can launch DDoS attacks.


TechRepublic

How to choose the best web host: A cheat sheet
TechRepublic
For a small fee, a web hosting service can provide your business with a domain name and publish a credible, secure website that drives customers to your products and services. All it takes is a few mouse clicks, some basic information, and about an ...

and more »

ZDNet

Hackers breach web hosting provider for the second time in the past year
ZDNet
Hetzner said the hacker didn't get access to payment card details, passwords, or users' website and email content. While no highly sensitive details were exposed, according to the company, Hetzner did urge users to keep an eye out for phishing scams.


ZDNet

Web hosting providers take three days, on average, to respond to abuse reports
ZDNet
Researchers scour the internet and keep an eye out for malicious links in email spam or other places, collect the URLs, determine the web host, and send out an email to the hosting provider, asking it to take down the link before users get a chance to ...

and more »

Lifehacker Australia

The Best Web Hosting Companies For Australians [2018]
Lifehacker Australia
Web hosting has come a long way since the days of uploading a few static HTML pages, some images and perhaps a few extras like a gallery or discussion board. Today's web hosts need to offer databases, automation, blogging platforms and a bunch more.


Mashable

1&1 web hosting review: You'll save a bundle, but first-timers beware
Mashable
You just need to find a web hosting provider within your budget that's reliable. However, with confusing package names and services, how do you pick the right one? 1&1 web hosting tries to best its competition by offering a ton of options at low rates ...

and more »

Web Host Pro Just Acquired a New Domain Which Came with Major Upgrades
Digital Journal
October 19th, 2018 - With more people using Web Host Pro platform for domain registrations, web hosting, reseller hosting, VPS hosting and dedicated servers, the company has officially migrated to a new Dot Com domain and went through major upgrades.

and more »

TechRadar

Yahoo Web Hosting review
TechRadar
As Yahoo is a veteran of the dot-com boom of the 1990s, you might expect the firm to offer a wide range of hosting options given the amount of server space at its disposal. Instead, Yahoo Web Hosting provides only a small number of fairly limited plans ...


ValueWalk

Choosing The Best Website Hosting Option For Your Site
ValueWalk
Choosing the Best Website Hosting Option for your Site – WordPress, Social Media Presence and Search Engine Optimization. Social media continues to play a major role in millions of people's daily lives. It would be accurate to say that these platforms ...


Canadian Web Hosting Announces New Real Time Monitoring Service
GlobeNewswire (press release)
VANCOUVER, British Columbia, Oct. 02, 2018 (GLOBE NEWSWIRE) -- Canadian Web Hosting, a leading Canadian provider of web hosting, cloud hosting, and infrastructure services, has released Real Time Monitoring to its customers with Dedicated and ...

and more »
Google News

How to Choose a Web Hosting Company

Web Hosting AdviceChoosing a web hosting company to host your... Read More

Fun with DNS: Three Useful Commands

The DNS is a distributed, hierarchical database where authority flows... Read More

Back To School Web Hosting

Every year as school starts web hosts see an up... Read More

Demand Unlimited Auto-Responders with Your Hosting Accounting

AutoResponders are nifty scripts that run in your web server... Read More

Internet Domain Registration - Establishing and Transferring Your Domain Name

If you're in business, one of the most important things... Read More

Web Hosting: Shared or Dedicated - Which Should You Choose?

Before you begin your search for a web host you... Read More

Top 5 Mistakes that May Drive Your Visitors Away in Less Than 2 Minutes

You took the leap. You set up a website to... Read More

The 2 Sides of Reseller Web Hosting

In the first case the customer is really looking for... Read More

Getting The Best Web Hosting For Your Business

After the dot.com bubble burst a few years back I... Read More

Where to Get Cheap Web Hosting

First, to see if you can use cheap web hosting... Read More

Choosing Your Web Hosting Package

General rule of thumb is not to sign up for... Read More

Choosing a Web Host Based On Price? Dont!

It's tempting. There are so many companies offering cut-rate hosting... Read More

How to Choose the Web Hosting Provider?

1. Does the company offer telephone support or 24/7 email... Read More

Unique Features that Leading Web Hosts are Now Offering

Some web hosts are offering more than others for the... Read More

Choosing the Perfect Deluxe Web Site Hosting Plan

If you are looking for a deluxe web site hosting... Read More

The Problem with Free Web Hosting Plans

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

40,000 New Blogs Are Started Daily - How Your Web Hosting Business Can Cash in

The fact that an estimated 40,000 new blogs are being... Read More

Best Web Hosting Company - Find The Most Affordable Host

If you're creating a community web site or a business... Read More

Virtual Private Servers (VPS) Web Hosting

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

Choosing The Wrong Server Will Literally Make Or Break You

Choosing the right web server will be one of the... Read More

Business Web Hosting: Which is Right for You?

Business web hosting is what you need. You have a... Read More

The #1 Factor New Webmasters Forget to Consider when Choosing a Web Hosting Plan

The ProblemToo often new webmasters sign-up with the first good... Read More

Avoid Getting Ripped Off By A Hosting Company

Chances are if you host multiple domains or websites you... 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

Elements of Web Hosting

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