+ Reply to Thread
Results 1 to 7 of 7

Thread: Common Chmod Permissions

  1. #1
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0

    Common Chmod Permissions

    Chmod - Description
    -----------------------------------------------

    400
    - Protect from anyone a file against accidental overwriting.

    500 - Protect yourself from accidentally removing, renaming or moving files from this directory.

    600 - A private file only changeable by the user who entered this command.

    644 - A publicly readable file that can only be changed by the issuing user.

    660 - Users belonging to your group can change this files, others don't have any access to it at all.

    700 - Protects a file against any access from other users, while the issuing user still has full access.

    755 - directory For files that should be readable and executable by others, but only changeable by the issuing user.

    775 - Standard file sharing mode for a group.

    777 - World changable - ebverybody can do everything to this file.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Off
    Off is offline Learning Programmer
    Join Date
    Feb 2008
    Posts
    83
    Rep Power
    0
    I don't see 744 on there. That is one that I see a lot of.

  4. #3
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    With 777 you mean the visitors still CAN'T change the content right??

  5. #4
    Jordan Guest
    With 777 anyone can do anything to the file (delete it, copy it, execute it, modify it, etc.).

  6. #5
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Yeah ok, so let's say I have a file hosted on my website with 777, what can a visitor do to that file?

  7. #6
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    No, not a visitor. It has to be someone that has access to the file system (a registered user that can login via SSH or cpanel/plesk). Unless... your visitors have access to files via a file-browser of some sort.

  8. #7
    EGS
    EGS is offline Programmer
    Join Date
    Feb 2008
    Posts
    116
    Rep Power
    0
    Quote Originally Posted by Jordan View Post
    With 777 anyone can do anything to the file (delete it, copy it, execute it, modify it, etc.).
    What exactly do you mean by that statement? How will people access that file to edit or delete it? Surely not via FTP?

    Also, I did not see 666 up there either, which allows the server/PHP to write and execute commands on itself.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. using <sys/stat.h> to look at Permissions
    By DavidO in forum C and C++
    Replies: 2
    Last Post: 09-16-2011, 09:10 AM
  2. How to chmod in putty?
    By onething in forum Website Design
    Replies: 3
    Last Post: 08-15-2011, 02:19 AM
  3. system 32 permissions?
    By zeroradius in forum Computer Software/OS
    Replies: 4
    Last Post: 09-13-2009, 04:38 PM
  4. Understanding Chmod
    By C3P0 in forum Linux/Unix General
    Replies: 2
    Last Post: 06-18-2007, 03:12 PM
  5. Chmod 777
    By dirkfirst in forum PHP Development
    Replies: 2
    Last Post: 06-14-2006, 02:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts