Results 1 to 11 of 11
Thread: Chmod 007
-
04-27-2004, 11:15 AM #1Web Hosting Guru
- 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
-
04-27-2004, 06:32 PM #2Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
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 | •••
-
04-27-2004, 06:45 PM #3Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
Hmm prehaps they should introduce the command chmod bond
I'll get me coat
RusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
04-27-2004, 06:51 PM #4Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
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 | •••
-
04-28-2004, 03:29 AM #5Web Hosting Guru
- 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.
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
-
04-28-2004, 03:32 AM #6Web Hosting Master
- 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
RusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
04-28-2004, 11:53 AM #7Web Hosting Guru
- 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
-
04-28-2004, 02:04 PM #8Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- Poland
- Posts
- 62
if cpanel is root or nobody... probably just try this and show us the results
-
04-28-2004, 03:51 PM #9Aspiring Evangelist
- 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)
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.
-
04-29-2004, 03:09 AM #10Web Hosting Guru
- 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
-
05-11-2004, 12:16 AM #11Junior Guru Wannabe
- 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