Setting File Permissions On A Unix Server

File permissions are one of the strengths that the Unix world has had over it's Windows contemporaries. Permissions are a means to control access to information on a computer, on a file by file basis. There are several layers of control, and these will be discussed below.

For the purpose of this series of tutorials, I have been using a free FTP program called Core FTP Lite to upload files to my server. I am using this program to describe my examples.

Ok, to begin, let's say that we have uploaded some files to a server.

We are discussing uploading scripts in general here, and certainly for many scripts, the creators may well specify certain 'permissions' that need to be set in order for the scripts to operate correctly. Let's take a look at a set of files on a server. In Core FTP Lite, the server files are shown in the right hand pane. Select one and then right click on the highlighted file.If you use a different FTP client, I expect that the layout will be very similar.

Run the mouse down to the bottom of the menu and select the item marked 'Properties'. Click on this option, and another dialog will appear.

You will see that the file in question (in this case a directory) is being shown in the 'File' field at the top of the screen.

What we are really interested in, is the tick boxes in the bottom half of the screen. These hold the file 'privileges' or 'permissions' for this file or directory.

There are three types of 'permissions' available.

* User - which means the person signed on who is setting the permissions

* Group - which means a specific group of users for whom access to the file has been granted

* World - which means everyone.

Within these groups of users, there are 3 distinct types of permissions

* Read - which means that permission to read a file, but not alter it or run it

* Write - which means permission to write to a file and change it

* Execute - which means permission to execute a file, which is important in the case of scripts for example.

Permissions are sometimes called by these names (read, write, execute) but are more commonly referred to using letters 'rwx'. In addition, permissions are sometimes referred to by a single number '755' for example. In the picture above, you will see a value box. This is the number being referred to. How is this number made up? Well let me explain.

Read
User 400

Group 40

World 4

Write
User 200

Group 20

World 2

Execute
User 100

Group 10

World 1

Each value for each setting is shown. Try them out by ticking them, and see the number in the 'Value' field change accordingly.

So, lets look at a real example

Can you see how the number 755 is made up? Add up the individual values from the value table and see.

So hopefully you can see, that setting file permissions with the right tool is not hard at all.

Charlie Cory worked or many years running a HelpDesk for a software house, and has experience in many operatng systems and technologies. The online aticle contains many pictures which help bring this tutorial to life.

Setting file permissons

In The News:


Washington Post

Stocks decline on personal income data
Kansas City Star, MO - 50 minutes ago
Investors worried about the tech sector after Dell’s report and its cautious comments about spending in the sector. The stock fell $3.48, or 14 percent, ...
Market was Down on Consumer Spending and Personal Incomes Data Zacks.com
Street Slips At Week's End Forbes
Stocks & Bonds Shares Fall on Slow Consumer Spending New York Times
AHNall 732 news articles

Money managers expect muted year-end tech rally
guardian.co.uk, UK - 11 hours ago
2 maker of personal computers, sounded a warning bell on Thursday when it reported a sharper-than-expected drop in quarterly profit and said cutbacks in US ...

Stocks end lower on personal income data
The Associated Press - 7 hours ago
Investors worried about the tech sector after Dell's report late Thursday and its cautious comments about spending in the sector. The stock fell $3.48, ...

Boston Globe

US STOCKS-Wall St tumbles as Dell warns on tech spending
Reuters - 9 hours ago
A government report showed US personal income fell unexpectedly in July while spending slowed as the effects of a government stimulus package wore off. ...
US STOCKS-Dell warning on spending, oil weigh on Wall St guardian.co.uk
US STOCKS-Wall St tumbles as Dell warns on tech spending Reuters
US STOCKS-Disappointing Dell earnings, oil weigh on Wall St Reuters
all 1,552 news articles

Sydney Morning Herald

Issue of technology in presidential campaign debated
MiamiHerald.com, FL - 7 hours ago
Even though McCain may not be wired on a personal level, his campaign surely has a strong online presense. On Thursday, the first ad that popped up when you ...
McCain Outlines Technology Policy Broadcasting & Cable
If Obama Wins, Who Will Be in His Cabinet -- And Who Should TransWorldNews (press release)
all 3,310 news articles

Tech Test Drive: Deca Sports (Wii)
San Jose Mercury News,  USA - 6 hours ago
The bad: The game doesn't use personal Mii's, instead only letting you choose from preloaded teams and players. Games are over simplified for easy play. ...

Stocks Shaken While Oil Stirs
Forbes, NY - 10 hours ago
Tech stocks were the biggest drag on the market, as investors punished most of the sector's biggest names. Dell (nasdaq: DELL - news - people ) was the ...
Street Softens As Gustav Pumps Oil Forbes
Stocks Tumble On Inflation, Spending News Forbes
Street Slumps Into Holiday Forbes
all 6 news articles

Stocks fall on personal income data, Dell report
The Associated Press - 11 hours ago
Ahead of next week's figures concerns arose Friday about the tech sector after Dell's report. The company fell $3.22, or 13 percent, to $21.99 after the ...

SmallCapInvestor

Slumping tech shares pace pre-holiday pullback
SmallCapInvestor - 8 hours ago
Small-caps stocks drifted lower Friday, weighed down by losses in the tech sector and by troubling economic data on the personal income report. ...
Small caps seen slightly lower; await more data SmallCapInvestor
Russell slips as crude rallies on Gustav SmallCapInvestor
all 21 news articles

Washington Post

Johnson finds plenty of faults in Tech rout
Atlanta Journal Constitution,  USA - Aug 28, 2008
He also screamed up close and personal at Zach Krish after the reserve guard returned to the sideline in the third quarter after he jumped offside to blow a ...
Nesbitt, Dwyer lead Ga. Tech past Jax State, 41-14 MiamiHerald.com
Here, there, everywhere . . . where am I? Atlanta Journal Constitution
all 160 news articles
personal tech - Google News

A Peek Into the Near Future of Electronics Technology

How long do you think DVDs have around? 20 years?... Read More

Why Build Your Own Computer System

Have you ever thought about building your own computer system?... Read More

Plasma TV vs LCD TV

For those seeking to buy their first flat panel TV... Read More

Portable Technology: Getting to Know the Treo

Up until the recent past, those who wanted to take... Read More

Internet Explorer Shortcuts for Mouse-o-phobes

If you're like me, you occasionally find the ubiquitous mouse... Read More

Customize Your Portable Player with an MP3 Player Accessory

Everywhere you look today people are listening to personal audio... Read More

Nephrology and Dialysis For a PDA

Saving Lives With A Pocket PCFree medical downloads can be... Read More

Web Standards

HTTP ProtocolThe web is run on port 80. You are... Read More

D2X Digital SLRCoolpix 8800 Actually Refers to Two Nikon Cameras

Addressing a D2X Digital SLRCoolpix 8800 search, this article provides... Read More

Make Windows XP Run Faster!

A friend told me: "My computer startup seems to be... Read More

5 Minute Guide to Video Editing for Beginners

Getting started with video editing is very simple you only... Read More

Spyware Remover

Your first step in removing dangerous infections from your computer... Read More

Gain Control Over Your Screensavers With These Simple Steps

We all enjoy our favorite screensavers but in the same... Read More

Advantages and Guidelines of Automated Testing

"Automated Testing" is automating the manual testing process currently in... Read More

Is Digital Camera Technology Making Film Obsolete?

Perhaps not yet, but the handwriting might be on the... Read More

Palm PC critique

I met an entrepreneur who hole heartedly disagree with an... Read More

Learn the Lost Art of Touch Typing

Computers have replaced typewriters, but two-finger, hunt-and-peck typing can never... Read More

Toshiba Wins Hollywood Support for the HD DVD format

What led them to this choice, as all four studios... Read More

Windows PDA Medical Software Benefits

PDA Medical BenefitsIf you are concerned about your medical history,... Read More

A Tale of Two Regeds

Tech support tells me to type 'regedt32' as opposed to... Read More

JVCs First Three-Layer Combo-Disc Blu-Ray / DVD

JVC developed and used a high-performance reflective film to produce... Read More

SmartCar Memory Stick for LapTop Transfer Data

With the new technology used to transfer information to from... Read More

Digital Cameras: How Many Pixels Do I Need?

With the bewildering number of digital cameras on the market,... Read More

How To Have Two (Multiple) Copies Of Windows

Having two operating systems is not as difficult as many... Read More

Selecting a Personal Digital Assistant

A Computer in Your HandCarrying around an address book and... Read More