Unix File Permissions

A tough subject. A lot of you come with questions about file permissions. First off, let me explain that on a Unix system, file permissions are a lot more advanced than on your average Windows machine. Unix file permissions are built up out of three sets of information. Each set contains 3 file permissions.

Now, what do all those permissions mean? There are a few special cases:

For regular files:

For directories:

Going on the above, you can already see that permissions that are set too loosely might be dangerous. Here you have this script that needs a directory where it keeps it's data. Now, since we're the file owner, and the webserver (which is most likely in the 'other' group) has no access, how can you set these modes?

In most FTP programs there's a dialog that will let you check the read/write/execute permissions for all 3 sets. I'll have to refer you to your FTP program documentation for the dialog itself.

If you have a script, the usual file mode is described as '755'. 755 basically boils down to:

Most data directories are set to '777'. This boils down to the fact that -everyone- (all 3 sets) get read / write / execute permission. I hope this helps you with the file permissions!






Proud suppliers of perl cgi and php applications created from the webmasters point of view. PerlCoders supplies top quality CGI scripts at membership warehouse prices every day. This is the only webmaster resource you need to build traffic and add interactive content to any website.

Need custom programming or website development? We do it all. Just use our contact form and let us know what you need.

Perlcoders.com - Copyright © 2003 by PerlCoders Group
Privacy policy       Licensing policy       Site Usage Terms
Not a member yet?
Click Here
User:
Pass:
I forgot my password
  HomePage
Current News
Our Products
Our Services
FAQ & Docs
Support
Contact
Make Money!
Affiliate Login
 
Right now get access at a special rate of only $160 which includes more than 156 of our top quality CGI scripts and get deep discounts on many others. You also get full access to our members area which is slam packed with webmaster goodies.

  · Read more...


 
Get the latest News at
the Perlcoders group.

 
What our clients say
Tell us what you think
Projects in the works
Free scripts to members
Free self help ebooks
Free Tip of the Day
Free Support
Custom programming
SEO Resources
Google Forum
Myth of Caesar
Image Hosting
Cellulean
SEO Forum