[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Change the default ftp directoy problem



I changed the default ftp directory like described on
http://www.uk2raq.com/raqfaq/raqfaqshow.php?faq=32

It works fine on the main domain sites, www.domain.com
But if I try to go to a sub domain another.domain.com I log into the users
directory and not the main web root.

Does anyone know how to fix this?

Here is the directions I followed:
 
su
  <ENTER YOUR ROOT PASSWORD WHEN PROMPTED>
   cd /usr/lib/perl5/site_perl/5.005/Cobalt
   cp Ftp.pm Ftp.pm.bak     #  This will create a backup
   pico -w Ftp.pm

Press CTRL & W together. Then type "DefaultRoot" and press enter.
It'll take you to a block of text like this:


   DefaultRoot / admin
   DefaultRoot ~/../.. $Sites_AdminGroup
   DefaultRoot ~ !$Sites_AdminGroup
   AllowOverwrite on
   DisplayLogin .ftphelp

Replace the above with this:


   MaxLoginAttempts 3
   ServerName "FTP"
   ServerIdent on "FTP Server ready."
   DeferWelcome on
   AllowStoreRestart on
   DefaultRoot / admin
   DefaultRoot ~/../../web $Sites_AdminGroup
   DefaultRoot ~/web !$Sites_AdminGroup
   AllowOverwrite on
   DisplayLogin .ftphelp

Then save the file by CTRL & O. Press enter, then CTRL & X
That's the hard bit done. You can disconnect from SSH/Telnet now.

Then goto your web control panel and add a virtual site. Doesn't matter what
you call it, just any old thing will do (something like www.a.com).