LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Apache Root Directories and Virtual Servers.

[ILUG] Apache Root Directories and Virtual Servers.

Anders Holm aholm at amazon.com
Thu Aug 25 18:01:52 IST 2005


Lisa,

Good idea would be to set group permissions instead of individual 
permissions, making sure the wwwrun user is in both groups (assuming one 
group for site a and one group for site b) so wwwrun can also access 
both sites. In that way you can limit group sitea access to only 
/srv/www/a and so forth ...

Does that make more sense to you? I'm in a bit of a rush, so my 
explanation may not be the best, but start looking at that, and you'll 
find the light at the end of the tunnel soon enough.. :)

HTH!

//Anders

Lisa Muir said the following on 25/08/2005 17:49:
> Hi Guys,
> 
> I'm trying to setup my home linux machine to serve webpages for two
> trial sites, a and b
> 
> I've got my dsl router portforwarding etc, and have a static IP and
> virutal servers all working fine.
> 
> My problem is directory permissions. 
> 
> The webserver root direcories reside in:
> 
> /srv/www/a
> and 
> /srv/www/b
> 
> I want to give users shell and ftp access to a and other users shell
> and ftp access to b.
> 
> This was cool when I only had one site, but now I find that users of b
> can access a's files and visa versa. Not good.
> 
> I've tried splitting them into seperate groups, but if I apply and
> folder permissions I merely lock out access to the folders to wwwrun
> 
> If I make wwwrun the owner of the folders, then by adding in extra
> users I'm granting both local users access to the respective webroot
> directories.
> 
> Is there another way to define directory access / users  that I can
> use to keep users in their home directories?
> 
> If I make wwwrun have sole permissions to /srv/www and move the home
> directories to /home, will they be able to link to sub-directories of
> /srv/www ?
> 
> Currently they can't log in for shell access if I set it up that
> way... any ideas would be great, I'm confusing myself here calculating
> chmod codes and not seeing any solution on the horizon.
> 
> TIA,
> 
> Lisa.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell