educational

How to Set UNIX file Permissions

Setting UNIX file permissions can be a confusing task for newbies - here's the painless way:

I'm not a programmer, and in fact, I'm not even a particularly "technical" person - but like many other Webmasters, I sometimes need to perform "technical" tasks in order to accomplish a specific objective. Like many other folks in this business, I enjoy the enhanced functionality and ease of site maintenance and content management that scripting can provide; and I'm more than willing to crash my server in an attempt to install the latest bit of software to catch my attention.

While I enjoy the benefits as well as the challenges that CGI script installation can offer, I am quite often frustrated by the cryptic installation instructions the script authors provide. They seem to assume that you know as much as they do about the arcane procedures involved in getting the damn things to work, and sadly this is often not the case. For example, one of the earliest obstacles that I faced when I first started fiddling with CGI scripts was the setting of "file permissions."

Although many Webmasters might consider this to be child's play, my first experiences in this realm were baffling beyond belief. My install sheet said that I needed to set a certain file's permissions to "777," but provided no clue as to how I should go about doing so. I knew the process involved the use of my FTP program, but searching the software's "help" file proved futile, and I was unable to find a menu item that said "permissions" - since they (Cute FTP) decided to refer to these as "attributes" instead. Compounding my confusion was the fact that the "codes" which indicate WHAT the permissions should be can be stated in several different ways, such as "drwxr-xr-x" or "755" or "write."

Performing a web search on "UNIX file permissions" was also a senseless journey into the nether regions of geek-dom. While I was able to uncover vast stores of information about the topic, nothing I discovered actually helped me to set my file's permissions using the software I had available to me. Sure, I now knew how to set permissions through the command line using telnet, but I'm on a virtual host that doesn't offer telnet access:

So for those of you who don't know your CHMOD from a hole in the ground (and who don't really care to since you only want to install a script, not become a programmer), here's how to set permissions using two common FTP programs: CuteFTP and WS_FTP Pro.

Using WS-FTP Pro

Setting file permissions using WS-FTP Pro is easily done by clicking on a series of "checkboxes." Simply right click on the desired file (or directory), and select "chmod (UNIX)" then left click. A small dialog box should appear (fig. 1).

"Read" permission has a value of "4," "Write" permission has a value of "2," and "Executes" value is "1." When Read, Write, and Execute permissions are added together, they equal "7," (4+2+1). When these three numbers are added together, and then set for each of the three permission groups (Owner, Group, and Other), you will have a valid "CHMOD mask" and your permissions will be set. Easy, right? You'll do fine as long as you can count up to "7." CuteFTP is even easier than WS-FTP Pro for newbies to handle due in part to its "Manual" indicator that removes all the guesswork (and mathematics) out of setting file permissions.

Using CuteFTP

CuteFTP is even easier than WS-FTP Pro for newbies to handle due in part to its "Manual" indicator that removes all the guesswork (and mathematics) out of setting file permissions. Simply "right click" the file whose permissions need modification and select "Change file attributes" from the pop-up menu. A dialog box (fig. 2) will appear, displaying Read, Write, and Execute "check boxes" for Owner, Group, and Public (Other). There is also a field labeled "Manual" on this dialog box.

Either type in the setting you need (777 for instance) into the "Manual" box, or click on the appropriate boxes to set your permissions. As you check off these boxes, the Manual box will change accordingly, updating the number inside and verifying that you have the permissions set right. When the number in the "manual" box equals the desired setting, click "OK." A confirmation dialog box should be displayed: click "OK" again - it's really that simple!

As you can see, actually setting your file permissions is a heck of a lot easier than trying to understand them, and a necessary evil in the world of CGI script installation. Good luck - and if at first you don't succeed, be thankful that you made backup copies...

Copyright © 2024 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

profile

'Traffic Captain' Andy Wullmer Braves the High Seas as Spirited Exec

Wullmer networked and hobnobbed, gaining expertise in everything from ecommerce to SEO and traffic, making connections and over time rising through the ranks of several companies to become CEO of the mobile business arm of TrafficPartner.

Alejandro Freixes ·
opinion

To Cloud or Not to Cloud, That Is the Question

Let’s be honest. It just sounds way cooler to say your business is “in the cloud,” right? Buzzwords make everything sound chic and relevant. In fact, someone uninformed might even assume that any hosting that is not in the cloud is inferior. So what’s the truth?

Brad Mitchell ·
opinion

Upcoming Visa Price Changes to Registration, Transaction Fees

Visa is updating its fee structure. Effective April 1, both the card brand’s initial nonrefundable application fee and annual renewal fee will increase from $500 to $950. Visa is also introducing a fee of 10 cents for each settled transaction, and 10 basis points — 0.1% — on the payment volume of certain merchant accounts.

Jonathan Corona ·
opinion

Unpacking the New Digital Services Act

Do you hear the word “regulation” and get nervous? When it comes to the EU’s Digital Services Act (DSA), you shouldn’t worry. If you’re complying with the most up-to-date card brand regulations, you can breathe a sigh of relief.

Cathy Beardsley ·
opinion

The Perils of Relying on ChatGPT for Legal Advice

It surprised me how many people admitted that they had used ChatGPT or similar services either to draft legal documents or to provide legal advice. “Surprised” is probably an understatement of my reaction to learning about this, as “horrified” more accurately describes my emotional response.

Corey D. Silverstein ·
profile

WIA Profile: Holly Randall

If you’re one of the many regular listeners to Holly Randall’s celebrated podcast, you are already familiar with her charming intro spiel: “Hi, I’m Holly Randall and welcome to my podcast, ‘Holly Randall Unfiltered.’ This is the show about sex, the adult industry and the people in it.

Women In Adult ·
trends

What's Hot Now: Leading Content Players on Trending Genres, Monetization Strategies

The juggernaut creator economy hurtles along, fueled by ever-ascendant demand for personality-based authenticity and intimacy — yet any reports of the demise of the traditional paysite are greatly exaggerated.

Alejandro Freixes ·
opinion

An Ethical Approach to Global Tech Staffing

One thing my 24-year career as a technologist working to support the online adult entertainment industry has taught me about is the power of global staffing. Without a doubt, I have achieved significantly more business success as a direct result of hiring abroad.

Brad Mitchell ·
opinion

Finding the Right Payment Partner

Whenever I am talking with businesses that are just getting started, one particular question comes up a lot: “How do I get a merchant account?” It’s a simple question, but it has a complicated answer.

Jonathan Corona ·
opinion

The Taxman Cometh for Every Business

February may be the month of romance, but it is also a time when we need to think about something that inspires very little love: taxes. April is not far away, and the taxman is always waiting. This year, federal and most state income taxes are due Monday, April 15.

Cathy Beardsley ·
Show More