Web Hosting Talk







View Full Version : starting with /web


Juan
07-04-2001, 05:47 AM
I want to start in /web when a user logs in via ftp. I changed Ftp.pm like this :

<VirtualHost $ip>
DefaultRoot / admin
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultChdir ../../web $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
DefaultChdir ../../web $Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp
$anonConfig</VirtualHost>

But when I login, it still doesn't work. Any ideas how to fix this? :confused:

Chicken
07-04-2001, 01:13 PM
Well, something there doesn't look right, though I've never tried his. I don't see /web in any of the lines.. not sure if it is supposed to be there or not? Someone in another thread suggested a search for ftp.pm and maybe an example is posted...

SI-Chris
07-04-2001, 09:10 PM
Here's what the <virtual host> section of your Ftp.pm should look like:

<VirtualHost $ip>
DefaultRoot / admin
DefaultRoot ~/../../web $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp
$anonConfig</VirtualHost>

brandonk
07-04-2001, 10:28 PM
Chris,

Have you been able to do this successfully with your code above?

WreckRman2
07-05-2001, 01:30 AM
I just create a soft link named wwwroot in the users directory.

cgisupp
07-05-2001, 02:12 AM
Changing this file will only change the new sites you create. It won't alter existing sites, to do that you need to change the /etc/proftpd.conf

So it reads:
<VirtualHost YOURIPADDRESS>
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm
DefaultChdir ../../web site-adm
AllowOverwrite on
DisplayLogin .ftphelp
</VirtualHost>

Juan
07-05-2001, 04:19 AM
Originally posted by cgisupp
Changing this file will only change the new sites you create. It won't alter existing sites, to do that you need to change the /etc/proftpd.conf

So it reads:
<VirtualHost YOURIPADDRESS>
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm
DefaultChdir ../../web site-adm
AllowOverwrite on
DisplayLogin .ftphelp
</VirtualHost>

thx, this is the one I needed ! Other question, .ftphelp, where is it located?

cgisupp
07-05-2001, 04:28 AM
/etc/skel/.ftphelp

searley
07-09-2001, 04:11 AM
quote:
--------------------------------------------------------------------------------
Originally posted by cgisupp
Changing this file will only change the new sites you create. It won't alter existing sites, to do that you need to change the /etc/proftpd.conf

So it reads:
<VirtualHost YOURIPADDRESS>
DefaultRoot / admin
DefaultRoot ~/../.. site-adm
DefaultRoot ~ !site-adm
DefaultChdir ../../web site-adm
AllowOverwrite on
DisplayLogin .ftphelp
</VirtualHost>
--------------------------------------------------------------------------------



I did this, but it keeps reverting back to the original config, how can i prevent this??

regards

cgisupp
07-09-2001, 04:23 AM
Did you edit the Ftp.pm file as well ?

searley
07-09-2001, 04:31 AM
no where do i find it??

cgisupp
07-09-2001, 04:37 AM
Should be at
/usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm

searley
07-09-2001, 04:46 AM
should i change to:

<VirtualHost $ip>
DefaultRoot / admin
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
DefaultChdir ../../web site-adm
AllowOverwrite on
DisplayLogin .ftphelp
$anonConfig</VirtualHost>


OR

<VirtualHost $ip>
DefaultRoot / admin
DefaultRoot ~/../../web $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp
$anonConfig</VirtualHost>



Thank you!

cgisupp
07-09-2001, 04:51 AM
The first example is correct..
Just add the line

DefaultChdir ../../web site-adm