Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 11:46:53 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to move/change the ftp base directory ?  (Read 907 times)
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« on: January 13, 2007, 01:38:45 AM »

Assume I setup a new ftp account for an existing user account.

By default this ftp account has its base directory in

/home/mydomain/public_html/

Currently I can extend this initial ftp directory to sub directory like

/home/mydomain/public_html/john/

but I cannot change it to a completely different directory like

/home/mydomain/ftponly/john/

a) How do I change this intial ftp directory otherwise to
/home/mydomain/ftponly/john/ ?

Maybe I have to change some (perl) scripts (which ?) ?

Or is the base ftp directory determined by some entries in
passwd files (which ?) ?

The ftp server used on the server is pure-ftpd

b) Is there a way to define a base ftp directory for ALL ftp accounts
simultaneously? In other words: All users should have their
upper most intial base ftp from now on in

/home/mydomain/ftponly/
Logged
Lupine1647
Berserker Poster
*****
Offline Offline

Posts: 11088


« Reply #1 on: January 13, 2007, 12:13:06 PM »

This is a limitation of Cpanel 10. I upgraded to Cpanel 11 on my dedicated server (Bleeding edge so it may have a lot of bugs) and it gets rid of this limitation so a user can create an FTP account so it points anywhere within their account folder.
Logged

Grr..!! Grr..!!
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« Reply #2 on: January 13, 2007, 11:31:36 PM »

Hello Ryan,

thank you for the info. Does cPanel definitivly contain bugs or may it only contains some ?

If I decide to upgrade to cPanel 11 does Lunarpages do this (on my request) or do I have to
install it by myself? Actually I have a "Managed Host" add-on option.
So I expect Lunarpages to do this. At least Lunarpages should have informed
us about this upgrade option.

Are all the current (DedServer) settings (e.g. eMail+ftp accounts) compatible or are they partially lost?

Once I upgraded to version 11 can I return back to cPanel v10 ?
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 974



« Reply #3 on: January 14, 2007, 12:53:52 AM »

Hello,

The cPanel release 11 which is also referred as EDGE is used for testing purposes and thus you shouldn't expect a stable behavior from it. If you decide to upgrade, LP staff can do that for you since you have the managed addon as well as you can do that yourself as the process is not complicated.

We don't inform about cPanel 11 because it is still in development. If you don't want hassles then you should not be running EDGE or CURRENT releases of cPanel.

If you decide to proceed with the upgrade, it is more than likely that the settings will be imported to the new version. However, downgrade may be not so smooth, though the downgrade itself is possible.

My personal recommendation would be to avoid editing cPanel scripts because stable cPanel release is issued every one-two months and your changes will be overwritten upon the upgrade.

As for the FTP directory setting, it is stored in the /etc/vftp/account_username for each FTP user on the account. You can edit it there and put the needed value.

I hope this helps.
Logged

Kind Regards,
Vlad Artamonov
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« Reply #4 on: January 17, 2007, 04:21:32 AM »

@perestrelka

Your hint with editing /etc/vftp/account_username is really great.

Do I have to restart a process after editing /etc/vftp/account_username
to let the changes become effective?

Or is this file accessed every ftp login event ?

Will this file be automatically modfied be any event in the future ?
I could imagine that e.g. cPanel overwrites any manual changes (for other users)
if I add a new ftp user account through cPanel interface.

Or maybe some "intelligent" cPanel scripts "repair"  occasionally
these "invalid" manual ftp base dirs?

Maybe there is a backup mirror of this file somewhere and if these two twins differ in contents the modified file is overwritten through cPanel by the "safe" mirror?


Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 974



« Reply #5 on: January 17, 2007, 11:47:43 AM »

Hi,

I'm not sure but I think that the file is accessed upon each login. If you modify it directly, it should not be overwritten until somebody modifies the FTP account from cPanel.

I hope this helps.
Logged

Kind Regards,
Vlad Artamonov
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« Reply #6 on: November 23, 2007, 03:05:10 AM »

Hello,

The cPanel release 11 which is also referred as EDGE is used for testing purposes and thus you shouldn't expect a stable behavior from it.

We don't inform about cPanel 11 because it is still in development.

Since I asked the first time for a solution nearly a year has gone.

Is cPanel 11 now stable and recommended for installation/upgrade ?
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 974



« Reply #7 on: November 26, 2007, 06:41:42 AM »

Hello,

The cPanel release 11 which is also referred as EDGE is used for testing purposes and thus you shouldn't expect a stable behavior from it.

We don't inform about cPanel 11 because it is still in development.

Since I asked the first time for a solution nearly a year has gone.

Is cPanel 11 now stable and recommended for installation/upgrade ?


cPanel 11 is rather stable now and we use it on our servers installed recently. It comes with some significant changes to mail and Apache build systems, but they allow to do more customizations and optimizations to the software installed on the server.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM