Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th January 2012, 17:17
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 41 Times in 34 Posts
Default Shared directory between sites

I intend to create a directory on another partition and create a symlink to it from various other users websites with the intention they can use it as a large storage area for images that is shared between them.

These sites normally are suexec settings.

Ideally I would like to allow all users to add and modify their own files here but read only on other peoples files.

Does anyone have advice on how I can achieve this please?


Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 17th January 2012, 22:34
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 7 Times in 5 Posts
Default

If all files are in the same directory make sure to allow the group to write on the directory and chown the directory 770. All users should belong to the same group.

Every user could create their own files and would not be able to modify others files. The downside is that any user can modify the directory and that means they could delete others files.

Other option is to create a directory own by the same group and have 750 priviligies. Inside that directory create a directory for each user make sure they are own by the user and the group. Then all users in that group could read others files and could only create files in their own directory.

I hope this helps.

Regards,

Rafael
Reply With Quote
The Following User Says Thank You to rafael-ec For This Useful Post:
Toucan (18th January 2012)
  #3  
Old 18th January 2012, 01:13
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 479
Thanks: 78
Thanked 41 Times in 34 Posts
Default

Thanks, it does help me understand the issues a bit better. The problem i foresee is with the groups. As i understand it, ispconfig assigns groups based on the client ie, web23 and web24 are users of group client9. So i don't know how I could allow different clients to share the same pool of directories.
Reply With Quote
  #4  
Old 18th January 2012, 03:47
rafael-ec rafael-ec is offline
Member
 
Join Date: Jul 2007
Posts: 57
Thanks: 15
Thanked 7 Times in 5 Posts
 
Default

How are your clients going to upload the files? ftp or via a web application? Maybe a web application is a best option. I can't think of one at the moment, but I once use egroupware and that had a file manager module for users to manage files. It really depends on your needs and what are you trying to do.

A client can have several ftp users and all of them would belong to the same group. I am knew in ISP Config 3, so I may be wrong.

You can always create another group and add the users to that group. Take a look to the following commands:
chgrp
addgroup
usermod
chmod

However I am not really sure what you want to do. If you have huge new partition or hardrive, you could mount that partition in /var/www

That way all your sites and data from the sites (except mysql that is in /var/lib/mysql) would be store in your big partition. That way for ISPConfig everythig is normal. However, you would need o do something like this.
Rename the /var/www directory to something else (ex /var/www-back
Create a new /var/www directory
Copy or rsync the files back to /var/www that is using your new partition
Save the new partition configuration in /etc/fstab to check that everything is ok.

Depending on the amount of data you may have a big or a little downtime. This are just some ideas I am thinking on while I am writing. Let us now how it goes.

Regards,

Rafael
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 20:37
64-bit Debian 3.1 Install Issue naruto Installation/Configuration 14 5th September 2006 05:12
Help dnectom Installation/Configuration 5 15th June 2006 15:05
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 14:42
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 18:02


All times are GMT +2. The time now is 20:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.