Welcome to the Small Business Ideas Forum! We are a community of over 100,000 small business folks with over 163,000 posts for you to browse. We pride ourselves on being the friendliest forum you will find and we'd love to have you as a member of our community. Please take a moment and register for a free account. If you need any help, please contact Chris Logan.

Small Business Ideas Forum

Small Business Ideas Forum

A friendly place to share small business ideas and knowledge, ask questions, find help and encourage others that are involved in the small business industry. Topics include small business marketing, generating revenue and small business computing.

Go Back   Small Business Ideas Forum > Small Business Computing > Website Development
Register Search Today's Posts Mark Forums Read

Thread Tools
Old 23rd June 2009, 10:07 AM   #1

Join Date: Jun 2009
Posts: 3
Default File Management Issue: Allow Users To Edit Certain Files But Hide The Rest.

Hello all, I've been working on a project and ran into a little snag. I was hoping some of the gurus here could help me out.

I developed a highly customized ordering system and am offering it to clients. I want to give them full control to design the look of their own website without giving them full FTP or File Manager access to the entire directory. They only need access to edit 3 files and one directory. index.php, stylesheet.css, contact.php, and the images directory. With access to these elements, they can change the look of their entire site.

The problem I ran into is that all of the files are located in different directories. I installed eXtplorer, which is a great application and works fine, but the accounts I create grant them permissions at the directory level, therefore they have full access to all of the other files housed in that directory. I do not want them to have full access as I've paid a lot of money to create the customizations and they would be able to download them and cancel their subscription with me.

I am looking to have one central login page where they can access the three (3) different files, edit them (online preferrably), and upload or save them. They should not be able to see, modify, edit, or delete any other file in the directory.

I am running PHP5 and MySql 5 on a Linux based machine utilizing Apache.

Any help or a lead into the right direction would be greatly appreciated. If you have more information and would like to PM me, please feel free to do just that. Thanks in advance!

ranga227 is offline   Reply With Quote
Register or log in to remove this ad.
Old 23rd June 2009, 11:27 AM   #2

Join Date: Jun 2004
Location: Colorado
Posts: 8,047

I think you need to rework your logic. A simple solution would be to create a new directory when they sign up. That directory would have their pages then created within it. Then set the permissions for that directory and those pages only for their access as appropriate. I've built similar functionality as you described and that was our approach.

Search Engine Guide - Small Business Guide to Search Marketing
Small Business Brief - Small Business Ideas Forum, Articles & News
Logan is offline   Reply With Quote
Old 23rd June 2009, 05:43 PM   #3
VIP Contributor
Sporkman's Avatar

Join Date: Oct 2007
Posts: 304

I agree with Logan, that's the standard way to manage multiple users' files on a shared linux system.

Here are a few relevant linux commands you can google for details (which you may need to run as root, depending on the permission of the directory you're operating in):

To create a directory:

mkdir <directory name>

To change ownership of a directory & all its contents to a user:

chown <user name> -R <directory name>

To change permissions of a file or directory - in this example, you restrict permissions of a directory to the user who owns the directory:

chmod og-rwx <directory name>

Sporkman is offline   Reply With Quote


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Backups with WinZip StupidScript Computer Security 0 9th December 2005 06:51 PM

Thread Tools

Get Updates
RSS Feeds:
RSS Feed for Website Development RSS for this Category Only: Website Development

RSS Feed for Small Business Ideas Forum RSS for Entire Forum
Forum Rules

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Small Business Ideas Forum

At Your Business - Small Business Directory
Free Business Forms - Prewritten Documents
Search Engine Guide
Small business guide to search marketing

Small Business Brief
Fetching the Best Small Business Info

Free Links - Free Advertising
Free Guide - Online Directory

Advertise your business here
Contact us for more details!

Semantic Juice
Register now to access free Quick SEO service!

Rocket Lawyer
Sign up for free 7 day trial. Boost your biz!

Buy UPC Codes
Get your products listed online!

All times are GMT -5. The time now is 08:35 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004 - 2018 - Privacy