Help us stay free, Link back to us! General Information - Bookmark this page

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:


Reuters

Money managers expect muted year-end tech rally
guardian.co.uk, UK - 3 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 Trim Losses As Oil Closes Lower Investor's Business Daily (subscription)
all 87 news articles

CTV.ca

Issue of technology in presidential campaign debated
MiamiHerald.com, FL - 2 hours ago
Even though McCain may not be wired on a personal level, his campaign surely has a strong online presense. As of Thursday the first ad that pops up when you ...
Video: Obama Makes Unscripted Convention Appearance AssociatedPress
all 2,233 news articles

US STOCKS-Futures lower on Dell profits, oil, data
guardian.co.uk, UK - 7 hours ago
Dell Inc's comments that companies around the world are cutting back on technology spending sparked fears of weakness in the whole tech sector. ...

Stocks Shaken While Oil Stirs
Forbes, NY - 1 hour 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
all 2 news articles

Stocks fall on personal income data, Dell report
The Associated Press - 2 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 ...

Seattle Post Intelligencer

Johnson finds plenty of faults in Tech rout
Atlanta Journal Constitution,  USA - 16 hours ago
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 156 news articles

Washington Post

Street Slips At Week's End
Forbes, NY - 4 hours ago
The Commerce Department recorded a 0.7% drop in personal income in July, more than triple expectations, but the disappointment was tempered somewhat by just ...
Stocks Under Pressure as Techs Slide, Oil Prices Rise (Corrects ... TMCnet
all 230 news articles

Boston Globe

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

US STOCKS-Wall St tumbles as Dell warns on tech spending
Reuters - 21 minutes 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. ...

Dell's earnings slip despite rising sales
CNNMoney.com - 21 hours ago
Gross margins measure a company's profit after subtracting the cost of sales as a percentage of total revenue, and are widely used by tech analysts as a ...
personal tech - Google News

Compile .BAT Files into Native Windows Applications (.EXE)

Since the DOS days, batch files have been one of the most convenient and immediate ways to accomplish certain tasks. Even today it's possible to find some remarkably sophisticated utilities written as command-line... Read More

Compare MP3 Players for the Coolest Features and Sweetest Deals

How can you compare mp3 players to be sure you're getting the best features and price? You've checked some mp3 player ratings, and they're helpful. But iPod reviews and ratings don't answer all... Read More

FTP - File Transfer Protocol Explained

File Transfer Protocol (FTP) is a protocol that is part of the TCP/IP suite. It is the standard for transferring large amounts of data from server to server and from servers to clients.... Read More

Enhanced Web Browsing With Toolbars

As the Web grows more crowded and just plain "noisy" with information bombarding us from every angle, most people welcome any tool, trick or shortcut to help them wade through the mountains of... Read More

Help, I Need a New HDTV! (Part 4 of 5)

Feeling overwhelmed in selecting a new TV? With all the choices these days, you may feel like, "Where do I start?!"In part 4 of our 5 part article, we the discuss "do I... Read More

The Benefits of the New Firefox Browser

You probably heard of the new Firefox browser version 1.0 recently released by Mozilla. If you are currently using Internet Explorer or Netscape, you are probably wondering if Firefox is better and why... Read More

Help, I Need a New HDTV! (Part 1 of 5)

Feeling overwhelmed in selecting a new TV? With all the choices these days, you may feel like, "Where do I start?!"In part 1 of our 5 part article, we discuss the importance (and... Read More

10 Easy Steps to Speed Up Your Computer - Without Upgrading

1. Empty the Temp directory regularly. To do this, make sure NO programs are open, and?a. In Windows 95, 98 or Me, go to C:WindowsTemp and delete everything inside the Temp folder.b. In... Read More

Lives With Games Tradition and Industry

The United States Of America citizen feels that games is a part of their life while developed countries such as the United Kingdom and Japan would feels that Games is high prospects to... Read More

Can Movie Theatres Compete with Home HD TV in the Future?

The battle is heating up for market share, home movie theatre, X-Box, Playstations and virtual reality take on the big screen and theme parks. You might be surprised to learn that the war... Read More

Internet Explorer Shortcuts for Mouse-o-phobes

If you're like me, you occasionally find the ubiquitous mouse inconvenient. Here are keyboard shortcuts for Microsoft's Internet Explorer (I.E.), the default browser for most personal computers in the business environment.Of course, learning... Read More

SmartCar Memory Stick for LapTop Transfer Data

With the new technology used to transfer information to from your digital camera to your laptop or PC using memory sticks which hold significant amounts of data it appears such technology will be... Read More

How to Use SQLXML to Retrieve Data from SQL Server Database?

Using SQL Server 2000 and above versions you can retrieve data from SQL Server in XML format directly from the database. Many XML related features were incorporated in the SQL Server database. This... Read More

PC Owners - The Largest Criminal Gang Ever?

The year is 1981. IBM has just released the Personal Computer; a low cost machine it hopes will create a winning brand. Several models are produced in quick succession accompanied by an ad... Read More

Advantages and Guidelines of Automated Testing

"Automated Testing" is automating the manual testing process currently in use. This requires that a formalized "manual testing process", currently exists in the company or organization.Automation is the use of strategies, tools and... Read More

What are the Main Components of Any Computer, and Which are the Most Critical to Its Performance?

Computers are everywhere, and vary in specification, brands, sizes, shaped, and prices. However, there is one common characteristic among all computer systems.whether we are talking standalone home pc, high performance networked servers, Unix... Read More

Is Digital Camera Technology Making Film Obsolete?

Perhaps not yet, but the handwriting might be on the wall?How is a digital camera different from a film camera? What are pixels and why are they important? What's the difference between optical... Read More

Learning To Navigate Ciscos Online Documentation

When studying for your Cisco CCNA, CCNP, or CCIE exam, you've got a powerful online weapon at your disposal. It's Cisco Connection Documentation, found at www.cisco.com/univercd. This site contains product, code, and protocol... Read More

Home Video? Bring it On

So you got yourself a digital camcorder. If you want to be able to edit and produce awesome home videos, you'll need some tools.VideoCharge http://www.deprice.com/videocharge.htmVideoCharge is a quick, easy, and simple processing solution... Read More

Email Management

If you utilize a computer at home or work it is likely that you use email. Email is an electronic message that is sent from one computer to another following a specific protocol... Read More

The Newbies Guide to Personal Computer Maintenance

When you turn on your computer, does it act like it needs a coffee to wake up? When you surf around the Internet, are you bombarded with pop-up windows? Does your computer freeze... Read More

2 PC Annoyances and How To Solve Them!

I have a love-hate relationship with my computer.In fact, often I love to hate my computer!It will do things I know even the great Mr. Gates didn't intend, and it usually does them... Read More

This Page Cannot Be Displayed ? What to Do When Your Internet Breaks

The DNS (Domain Name System) servers are what your computer uses to figure out where to go on the internet. www.whatever.com means absolutely nothing to your machine. It's only with the help of... Read More

What Are You Looking For In A Cheap MP3 Player?

Are you stymied by the vast offerings in cheap mp3 players? Don't know which features best suit your needs? Here are some suggestions based upon product reviews by mp3 player owners.The first thing... Read More

Microsoft Great Plains Dexterity Customizations

Microsoft Business Solutions is on the way to popularize it's ERP systems implementation. Right now such products as Microsoft CRM and Small Business Manager (cheap version of Microsoft Great Plains, based on the... Read More

Tips For Finding Great Deals On Computer Accessories & Supplies

Tip #1. Do a Google search. Don't be to general in your search, type in exactly what your looking for. Try putting the words you type in quotes to narrow the search.Tip #2.... Read More

Refurbished Computers on the Internet

What is a Refurbished Computer?Refurbished Computers. Remanufactured Computers. Reconditioned Computers. Essentially, all of these terms refer to the same thing. But what does refurbished really mean? A refurbished computer is one that is... Read More

A Lesson in HTML

As the owner of a Country Mall and Top Site List, I have been asked several times about what to put in the sign up form when it asks for the URL or... Read More

Registry Tools Demystified

Not sure what Windows registry is or how it works? Don't worry - there are tools that can take care of all registry related tasks for you, even if you are a seventy... Read More

GOOGLE AD