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>
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?
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 ?
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