Discussion Locked

FTP ?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi.
I have "2" RedHat 7.1 computers linked together via a hub. I have WU-FTP installed on one computer, "called server". I have access to the server and all the files and folders via the client. The problem is the wu-ftp server is supposed to drop me into the ftp home directory, not the root directory of the server. Not Good. How can I limit the ftp user to the ftp home directory, usually called PUB. I cant find the information in my books.
Thanks Pat

3 replies

by bg4

Pat, I assume that the client is logging in anonymously. When a user logs in
the ftp daemon executes a "chroot" call which makes the users home directory
their root directory. That is an anonymous users home directory, usually
/home/ftp, will be visible as / on the users PC. All the subdirectories under
/home/ftp such as pub, bin, etc should have the same ownership as /home/ftp.
The directory and file ownership should be root:wheel. The anonymous user is
usually "ftp" and should have an entry in the password file like:
ftp:x:14:50::/home/ftp:/bin/false

I hope this helps.

This discussion is closed to new replies.