SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 3rd, 2001, 04:00 PM
D-Bugger D-Bugger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 6 D-Bugger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow

Hi,

Is there a way to have the DocumentRoot of virtual domains pointed to /home/xx/www without having to set the user's homedir worldreadable?

Putting "User xx" within the <VirtualHost> only affects cgi-scripts! :-(

Thanks,

Bugger

Reply With Quote
  #2  
Old March 3rd, 2001, 04:32 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes. Chmod /home/xx 755 and chmod 750 /home/xx/www and chown it xx.user_apache_runs_as.
Other users with shell access can't access to your /home/xx/www dir, but still, if they can write a simple script and be able to view everything in /home/xx/www/ because that script runs as user_apache_runs_as.

Reply With Quote
  #3  
Old March 3rd, 2001, 04:51 PM
D-Bugger D-Bugger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 6 D-Bugger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Then my users would complain that they can't upload files to their www-dir using FTP ...

Reply With Quote
  #4  
Old March 3rd, 2001, 04:53 PM
D-Bugger D-Bugger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 6 D-Bugger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down

How UNsafe is it to run apache as root?

Or is that out-of-the-question??


Reply With Quote
  #5  
Old March 4th, 2001, 04:06 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> then my users would complain...

Why can't they? Say user_apache_runs_as = http, bob's www dir would be owned by user bob himself and http group. As I said, chown xx.user_apache_runs_as, xx refers to bob and user_apache_runs_ refers to http in this case. Chmod 750 = drwxr-x---, bob has full RWX permission while http group has RX and that's sufficient to serve webpage.

>> How UNsafe is it to run apache as root?

If you are the only person who has a web dir and also the only person who has access to your box, then it's safe, but you still know what you are doing. Your Apache seems to serve multiple users, then it's unsafe and anyone can do bad things to your server.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > DocumentRoot in user's homedir


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway