Forum Moderators: bakedjake

Message Too Old, No Replies

Change Default FTP Login

Need FTP user to login to directory other than /home/user by default...

         

Bertha

1:00 pm on Mar 9, 2004 (gmt 0)



Ok,

I'm am trying to change the default FTP directory for a particular user.

For example, I used the .bash_profile to enter "cd /home/XXX/****xx.com" so that a default shell account from a particular user can go into this web directory I specified.

How (possibly without symbolic links) can I get a default FTP login to arrive in this same directory?

The reason I ask is because when I create a symbolic link and then click on it using my graphical FTP client, the FTP client tries to "download" it instead of linking to it directly...

To sum up.

I have this directory: /home/user1/xxxxxx.com

I have user 2, who by default logs into /home/user2... I have edited bash_profile to get this user into /home/user1/xxxxxxx.com by default during a shell login?

How can I mimic this behavior via an FTP login? Thanks so much!

NOTE: I cannot use hard links either

MattyMoose

9:59 pm on Mar 9, 2004 (gmt 0)

10+ Year Member




I have this directory: /home/user1/****xxx.com

I have user 2, who by default logs into /home/user2... I have edited bash_profile to get this user into /home/user1/xxxxxxx.com by default during a shell login?

How can I mimic this behavior via an FTP login? Thanks so much!

NOTE: I cannot use hard links either

Why don't you just change their home directories to be the same, since you make user2 cd to user1's directory anyway?

If you can't do that (sharing .bash stuff, etc), then you could give them a different FTP login (user2-ftp).

Set it up like this:
user2 = Allowed to log in to shell, not allowed FTP, home directory the same as it is.
user2-ftp = Not allowed into shell, allowed into FTP, home directory set to user1.

Kind of a kludge, but it's doable.

-MM