Administration
  Home arrow Administration arrow Page 2 - CHMOD: Tool for Open Source Administra...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
eWeek
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

CHMOD: Tool for Open Source Administration
By: Drew Decker
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 29
    2005-12-05

    Table of Contents:
  • CHMOD: Tool for Open Source Administration
  • chmod Reasoning
  • Switches
  • Modes
  • Mentally Converting from “read/write/execute” to 777

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    The Best Selling PC Migration Utility.
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    CHMOD: Tool for Open Source Administration - chmod Reasoning
    (Page 2 of 5 )

    So why use chmod? Do I have to? Does it benefit me? Use it because you should. Heck yes, it benefits you! To better understand the reasoning behind the chmod command, you’ll have to keep reading.

    You’ll want (need) to use the chmod command for changing permissions for certain network files, and for giving certain privileges for certain tasks to certain users/groups, while still keeping settings for yourself (the owner). Also, chmod, as most people that are reading this know, is used a lot when using FTP (File Transfer Protocol). In FTP, you would change the mode (change permissions) to certain directories/files so that the web server services can read/write/execute from the server, which in this case would be a UNIX/Linux server.

    You don’t have to use the chmod command, but I guarantee you that you will probably fail at what you are trying to do and/or lose your job if you don't use the command.

    It benefits you in many ways; so many that I can’t list all of them. To name a few things, you can set privileges to certain folders/directories/sub-directories for not only yourself (owner), but also groups and the world (other). As I said above, using chmod lets you change file permissions for the web, allowing the read/write functions of a program written in such languages as PHP or CGI/Perl and other server side languages.

    Using chmod in Linux

    Now we can start using the keyboard and start something a little more interesting than the basics of the chmod command and why to use it. You can use the chmod command in a web server environment in two cases: if you have shell access or if you are hosting your website on your machine and have access to the computer directly. If you didn’t have this kind of access, then you would use the chmod command in an FTP environment. FTP is not covered in this article.

    In a UNIX/Linux environment (or if you had direct Shell access) you would use the chmod command directly as if you were in the actual environment, unless you are in the environment, in that case keep reading. The chmod command is structured with the command name followed by switches, then modes, then files/directories. Here’s the raw markup:

    Bash

    • chmod [switches] [mode] [files]

    This is a raw markup, meaning that it with not work; it just shows you how you would structure your bash command for using the chmod command. Next we are going to talk about switches.

    More Administration Articles
    More By Drew Decker


       · Darwin Linux???
       · You mean "octal", i.e., base 8. Why spend so much wordage introducing IPs and octets...
       · should be darwin linux :D!
       · I have my way of explaining things. Is it because I'm 19 or it because I'm full of...
     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway