phpBBHacks.com - CHMOD 2: Number CHMODing
Talk sports at SportsForums.net
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
CHMOD 2: Number CHMODing
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Tools and Related Topics
 See a User Guidelines violation? Please contact us.
Author Message

Jaeboy
Well Known User

Joined: 17 Oct 2002
Posts: 285
Location: HkG SAR

PostPosted: June 18th 2003, 9:59 am    Post subject: CHMOD 2: Number CHMODing Reply with quote


      The tutorial from Rapid Dr3am is good, but is usually used by developers and/or command prompt users, so I've created a standard CHMODing tutorial that is used by most FTP software. Have Fun!

      What is CHMOD:
      CHMODing defines a user's right to access/view/modify a file and it is divided in 3 categories

        Owner | Group | Public


      Complete CHMOD Table:
      Code:

              |   Owner   |  Group   | Public
      Read    |           |          |       
      Write   |           |          |
      Execute |           |          |


      Read means, allow browser to read the file
      Write allow user to make changes via browser or any HTTP protocol
      Execute is for executing scripts such as php etc.

      777 gives full right to all user

      777 means that Read is allowed, Write is allowed, Execute is allowed.


      Code:

              |   Owner   |  Group   | Public
      Read    |    OK     |     OK   |     OK
      Write   |    OK     |     OK   |     OK
      Execute |    OK     |     OK   |     OK
      Result=       7           7           7



        Read gives 4 points
        Write gives 2 points
        Execuite gives 1 point


      For example if i want to allow owner to read/write/execute while preventing group and public to write, it should look like 755.

      Code:

                | Owner   |  Group |  Public
      Read(4)   |   OK    |   OK   |   OK     
      Write(2)  |   OK    |   No   |   No
      Execute(1)|   OK    |   OK   |   OK
      Result  =      7        5        5


      And if I want to prevent allow owner to still have r/w/e but allow group and public to r/w but not execute it sould be 766.

      Code:

                | Owner   |  Group |  Public
      Read(4)   |   OK    |   OK   |   OK     
      Write(2)  |   OK    |   OK   |   OK
      Execute(1)|   OK    |   No   |   No
      Result  =      7        6         6



        Always remember this table:
        Code:


                  | Owner   |  Group |  Public
        Read      |   4     |   4    |   4     
        Write     |   2     |   2    |   2
        Execute   |   1     |   1    |   1

          Result = 7 7 7



      FAQ: I am using a Windows operating system, why can't I use this function?
      Answer: CHMOD is for *NIX users only (Linux, Unix, etc.)

      Note: This article is based on my own knowledge, please correct me if am wrong


See also: CHMOD File Permissions.
_________________
I love that Cat
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Tools and Related Topics All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - PhotoshopForums.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - DrGregHouse.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

Copyright © 2001-2009. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. Hosted by 100MegsWebHosting. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.