Welcome to the Small Business Ideas Forum! We are a community of over 37,000 small business folks with over 87,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

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

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
Old 23rd June 2009, 11:27 AM   #2
Logan
Administrator
 

Join Date: Jun 2004
Posts: 5,896
Default

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.

__________________
Free Links - Promote Your Website For Free
Online Guide - Directory Of Free Stuff Online
Logan is offline   Reply With Quote
Old 23rd June 2009, 05:43 PM   #3
Sporkman
VIP Contributor
 
Sporkman's Avatar
 

Join Date: Oct 2007
Posts: 323
Default

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
Reply

Bookmarks


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

Get Our Newsletter:
Receive our weekly digest of the best small business articles & discussions.

Forum Rules
Sponsor



Sponsor






More Info
Small Business News
Small Business Articles
Small Business Resources
Small Business Software
Small Business Opportunities
Small Business Loans
Glossary
Link To Us
Advertise
Newsletters
Small Business Brief Newsletter
Search Engine Marketing Newsletter
Ebooks
3 Little Things (and 1 Big Thing) to Create Winning Web Copy
Best Damn Web Marketing Checklist, Period!
Zero Dollars, a Little Talent and Thirty Days
Six Figure Blogging
Keyword Research Guide
The Step-By-Step Copywriting Course
Link Building Secrets
Drop Ship Wholesalers Directory
Destination Search Engine Marketing
E-Marketing Performance
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


Our volunteer moderators and their sites:
David Wallace
SearchRank - Organic Search Engine Optimization
Old Welsh Guy
Internet Marketing from Wales in the UK
thejenn
Search Engine Guide - The Small Business Guide to Search Engine Marketing
StupidScript
FraternityMed.com - Health, Illness and Wellness information for young people.
copywriter
Karon Thackston The Step-by-Step Copywriting Course & Learn Copywriting Directory
St0n3y
Search Marketing Results - Pole Position Marketing!
Search Marketing Info - (EMP) E-Marketing Performance
torka
NineYards.com: Helping Businesses Do Business Online
Karri
snap! virtual associates inc. - Internet marketing services for the progressive entrepreneur.
Matt McGee
Small Business SEM - Web marketing discussion for small businesses.
ChristineG
Free Online Marketing and Social Media Tips: Social Media Simplified for Small Business Owners
Logan
At Your Business - Forms & Online Help
Free Links - Free Advertising
Debra Mastaler
Alliance-Link
The Link Spiel Blog
Crimson Fox
Graphic Design and Brand Promotion and the Brand Design Blog

All times are GMT -6. The time now is 09:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2004 - 2009 K. Clough, Inc.