anixs
02-27-2001, 11:33 PM
Greetings,
I added:
DefaultChdir ../../web $Sites_AdminGroup to my Ftp.pm and it
has been working GREAT. However, I enabled Anonymous FTP on my site and now users start once again in /users/username/ instead of /web. Any ideas how to fix this? My Ftp.pm appears to be unchanged.
Thanks
netastic
02-28-2001, 10:08 AM
did your original 'chdir' set up the server so that when a user logs on with ftp he goes directly to the /web directory instead of the /users/username directory? i don't know the answer to your question, but if you could tell me the step by step line commands to do this on my raq i would be grateful.
anixs
02-28-2001, 11:28 AM
Yes, adding that line did start users off in /web
But after I enabled Anonymous FTP it won't do that any more, and the line is still in Ftp.pm. C'mon guys, HELP! :)
netastic
02-28-2001, 11:58 AM
where is 'Ftp.pm'?
can i make this change to all existing and new domains except for the main domain? if so how would i set the main domain up to keep it as is?
anixs
02-28-2001, 01:18 PM
You want to edit:
/usr/lib/perl5/site_perl/5.005/Cobalt/Ftp.pm
See gmilhon's instructions ini http://www.webhostingtalk.com/showthread.php?threadid=5507
Update: 24 hours later, my RaQ is now starting users in their (virtual) / directory. I love these things. :)
syanet
03-30-2001, 08:34 PM
I followed those instructions and now have a section looking like this:
<VirtualHost $ip>
DefaultRoot / admin
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultChdir ../../web $Sites_AdminGroup
DefaultRoot ~/../.. $Sites_AdminGroup
DefaultChdir ../../web $Sites_AdminGroup
DefaultRoot ~ !$Sites_AdminGroup
AllowOverwrite on
DisplayLogin .ftphelp
$anonConfig</VirtualHost>
I restarted Apache and it still logs me into the user directory. Any ideas?
Starhost
03-31-2001, 04:17 AM
Restarting apache?!? What got apache to do with ftp? You have to restart pro-ftpd.
SI-Chris
03-31-2001, 05:13 AM
Originally posted by Starhost
Restarting apache?!? What got apache to do with ftp? You have to restart pro-ftpd.
If I remember correctly, proftpd restarts everytime anyone logs in to an FTP account; you don't have to restart it the way you would restart Apache.
hi Syanet
you have to create a new virtual site so the RaQ will rewrite the proftpd.conf file with the information you added to Ftp.pm above. You can then delete the virtual site you just added.