BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

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 January 5th, 2004, 08:12 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
User's Home Directory

I have a FreeBSD machine from which I host many virutal hosts. Each domain of coarse has a user login for FTP access.

When I originally create these user's the home directory defaults /usr/home/<username> which is a totally different location than their web directory.

Some people have a problem with FTP'ing to their correct directory. Most in fact just connect and start uploading files in their home directory.

For instance a users web directory may be /usr/local/www/vhosts/whatever.com/htdocs so once a user has connected via FTP they actually need to CD to their correct vhost in order to make changes to their site. Simple enough.....but I guess not

In order to make this full proof for some I'd like to make the user's home directory their web directory....so when they connect via FTP they are in their correct directory.

What's the best way to do this?
1. chsh <username> and make the home directory their web directory? (will this have any effect on other things?) Move all the "." (files) to their web directory also.
2. Change their apache configuration to point to their /usr/home directory
3. Put a "cd /usr/local/www/vhosts/whatever.com/htdocs" in their .profile (will this acutally work?)
4. what else can I do to make this so simple all they have to do is connect and start uploading?

Thanks for your input

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > User's Home Directory


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 3 hosted by Hostway