Web Hosting Talk







View Full Version : Change FTP home directory?


webfors
10-12-2000, 02:39 PM
One of my clients would like me to change the default directory when he FTP's into his account. I'm not sure how to do this without modifying the users home directory.

Does anyone know how to modify ONLY the ftp default directory without having to mess around with the users home directory?

Chicken
10-12-2000, 03:17 PM
He wants the "www" or "http" directory to be called something different? Why on earth... ???

webfors
10-12-2000, 03:31 PM
No,

I guess I wasn't clear enough.

Basically when he ftp's into his account, he wants to be put in the public_html folder.

He is writing a script that is going to sync 2 webhosting accounts by automatically ftp'ing into his account on my server and depositing the files directly into his public_html folder.

Travis
10-12-2000, 03:46 PM
ProFTPD will let you specify a directory to drop a user into after logging in. (Without changing their home directory in the passwd file, that is.)

MSW
10-12-2000, 03:55 PM
You will want to go into the proftpd.conf file (usually located in /usr/local/etc and add the entry to specify which directory they will use as their root.

For more information on the directives, go to: http://www.proftpd.com

webfors
10-12-2000, 04:10 PM
Unfortunately I'm using wuftp on my server at DI.

Any ideas?

Chicken
10-12-2000, 04:50 PM
Originally posted by tabernack
Basically when he ftp's into his account, he wants to be put in the public_html folder.

I'm not sure about the script that you were talking about, but from the start this sounded like something he could do on his end (as Travis said). It just sounded to me like he needed to specify the "Initial Remote Host Directory" as "/path/to/public_html".

I'm not sure how WS_FTP accomplishes this (programming wise), but I'd assume this is what he needs to do? I leave this for those who know more about what you are talking about...

webfors
10-12-2000, 04:53 PM
Thanks Chicken,

I explained the exact same thing to him. I just wanted to see if this was possible.

It would be a lot easier to have the script just "cd" into the appropriate directory!

If I can't find anything, that's exactly what I'll tell him.