Results 1 to 11 of 11

Thread: Chmod 007

  1. #1
    Join Date
    Oct 2003
    Location
    Worldwide!
    Posts
    281

    Chmod 007

    Hello,

    If I CHMOD a php script 007 (As in it can only be viewed by the public), can a Cpanel home backup copy it (From the clients Cpanel)?

    Thanks,

    James
    PhoneSupportWorldwide.com
    Web Hosting Telephone Customer Services
    Telephone: 0800 310 2729 - Blog: Click here

  2. #2
    007 means only the public can read, write and execute the file. That makes absolutely no sense at all from a system standpoint. As for your question, yes it can.
    ••• Like us on Facebook to qualify for discounts! •••
    ••• http://www.sprintserve.net •••
    ••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
    ••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

  3. #3
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,616
    Hmm prehaps they should introduce the command chmod bond

    I'll get me coat

    Rus
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  4. #4
    Sure. You can have the coat. I get the girls
    ••• Like us on Facebook to qualify for discounts! •••
    ••• http://www.sprintserve.net •••
    ••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
    ••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

  5. #5
    Join Date
    Oct 2003
    Location
    Worldwide!
    Posts
    281
    Originally posted by sprintserve
    007 means only the public can read, write and execute the file. That makes absolutely no sense at all from a system standpoint. As for your question, yes it can.
    I wanted it so that

    1 - The owner can not eddit the file, nor copy it.

    2 - So that it can still execute/run from their website (Hence 7 on public)

    Thanks for your comments anyway
    PhoneSupportWorldwide.com
    Web Hosting Telephone Customer Services
    Telephone: 0800 310 2729 - Blog: Click here

  6. #6
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,616
    Well as an aside copying will be easy if they can access it from the web browser. They could just save it on their hard disk and upload it

    Rus
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  7. #7
    Join Date
    Oct 2003
    Location
    Worldwide!
    Posts
    281
    Not a php file
    PhoneSupportWorldwide.com
    Web Hosting Telephone Customer Services
    Telephone: 0800 310 2729 - Blog: Click here

  8. #8
    Join Date
    Aug 2002
    Location
    Poland
    Posts
    62
    if cpanel is root or nobody... probably just try this and show us the results

  9. #9
    Join Date
    Mar 2004
    Location
    Chicago, IL
    Posts
    390
    Originally posted by WebspaceUK
    I wanted it so that

    1 - The owner can not eddit the file, nor copy it.

    2 - So that it can still execute/run from their website (Hence 7 on public)
    First you probably want 005, not 007 (do you really want the webserver to be able to write to the file?)

    Second, all the owner has to do is chmod the file to copy it.

    Third, yes cPanel will still back up this file if the user does a home directory backup.

    and Forth (in case you disabled file manager) if the owner has the ability to create files in their own web directory, it's still very easy to get the source of that file if the webserver can read it.

    If you don't want the user to have access to the source of the PHP, you should encode it (using whatever technology you have on your server, such as zend or ioncube). The user will still be able to copy it, but not change it.

  10. #10
    Join Date
    Oct 2003
    Location
    Worldwide!
    Posts
    281
    It is currently in Zend

    Thanks for that
    PhoneSupportWorldwide.com
    Web Hosting Telephone Customer Services
    Telephone: 0800 310 2729 - Blog: Click here

  11. #11
    Join Date
    Dec 2003
    Location
    Mentor, Ohio
    Posts
    38
    perhaps try putting the file outside of the nested directory, and call an absolute path on the backend? im not 100% fluent with cpanel, but have enough unix admin background, where that would make sense?
    Compaq Linux Forums!
    http://www.cpqforums.com

Posting Permissions

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