Currently set to No Index
Currently set to Follow

Using cPanel to Change File Permissions: How and Why?

One option that you might have seen when exploring cPanel is the ability to change your file permissions.  You may know that setting file permissions is important to security, but you may have been overwhelmed by the number of options.  So let’s take a quick refresher course on this topic, because you are right: it is important.

First, let’s make sure everyone is up to speed.  To set a file’s permissions, first go to the File Manager, click the name of the file (or directory) that you want to adjust, and on the top menu on the File Permissions page you’ll see a link that says “Change Permissions”.  Click on it and let’s get started.

Three user levels

There are three user types.  First the user called “User,” which is whoever is listed as the owner of the file.  Skipping the second for a moment, the third is “World,” meaning anyone who might have the ability to access this file: other users on your server, server applications, or external users if the file is a web page being accessed across the web.

RELATED:   The Unique Advantages of Plesk

The second, “Group,” takes some explanation.  Sometimes you want to restrict certain types of access to only certain people.  For these people, you create a “group.”  Each file already belongs to some group by default.  Whatever group it does belong to, any users listed as part of that group have the access rights that you afford to them, which can be different from those associated with either “User” or “World.”

Three access types

The access types are a little more well known.  “Read” means just that: you (“you” meaning whoever is trying to access the file) can see the file and its contents.  “Write” means you can alter the file’s contents.  “Execute” means that you can run the file as a program.

RELATED:   Why You Need a Good Control Panel

Three times three equals … a lot of questions

A file thus has nine (3 times 3) total permissions that it can turn on or off.  Your goal in deciding which of these to set how is to make sure that everyone you want to access the file can, and everyone you don’t can’t.  How do you?

This one area in which you are going to want to contact your service provider.  Your files are often not just accessed by web surfers, but also by a host of on-server resources, and sometimes some of them will break if your files aren’t set the way they should be.  One example is as follows; If you have a directory in which logs of hits to your web site are kept, and you set the directory to give no one but you any permissions, then the server might not be able to send your your logs each night.

RELATED:   Simple cPanel Tutorial – Backing up your Website

When in doubt, make it read-only

A good rule of thumb is that you want to make sure that you always have full permissions, but hold the group and world access levels to read-only.  This reduces the chance that anyone can fool around with your site, but still leaves it accessible to anyone who truly just needs to read its contents.

Nonetheless, check your cPanel web host online documentation as they will often have information listed about which files and directories need which settings.  If you don’t see what you’re looking for there, ask them.  Trust me, bad file settings can potentially be just as much of a headache for them as it could be for you.

How-to Start a Blog – Review of the Best 10 Blogging Platforms
How-to Start a Blog – Review of the Best 10 Blogging Platforms

If you want to start a blog as fast as possible, then you need to consider choosing a blogging platform. Thankfully, there are some excellent free and paid blogging platforms...

How Referral Marketing Can Benefit Web Hosts
How Referral Marketing Can Benefit Web Hosts

Even if the niche of web hosts are fully loaded with a lot of companies they are still one of the easiest to promote because you could write your own...

Broken Links: How to Find, Fix, and Benefit from Broken Links
Broken Links: How to Find, Fix, and Benefit from Broken Links

Links are what holds the web together. Essentially, the web is named as such because of the ability for pages and sites to link to other sources and relevant information....

Brand Value & the Most Powerful Brands (with Infographic)
Brand Value & the Most Powerful Brands (with Infographic)

Brand value – everyone wants it, however, only few are able to achieve it. The subject of “brand value” holds a significant position amongst marketers, executives, and entrepreneurs. Let’s discuss...

Reasons why your business should shift to Cloud hosting
Reasons why your business should shift to Cloud hosting

Cloud hosting has been on the rise since its inception. The improvement to your website performance and business efficiency that comes with Cloud hosting is almost tangible.

Why We Love the IT Support Career?
Why We Love the IT Support Career?

In almost all of my posts I was talking about the stressful side of the IT – the long hours, end user issues, migrations, midnight calls and the like. But...

IT Manager: Ways To Show Your Appreciation To Your Team
IT Manager: Ways To Show Your Appreciation To Your Team

Surely your team struggled hard and made things happen. You cannot say “this is what you get paid for” and just leave – you cannot keep your IT staff that...

Feeling Insecure In Your Current Job Position?
Feeling Insecure In Your Current Job Position?

Job security is one of our primary concerns. We everyday we live with the question of whether or not we will be working the next day. Loyalty is not the...

Leave a Reply

Your email address will not be published. Required fields are marked *