Discussion Locked

For Linux newbie

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

Greetings to all,
I am quite new to Linux (Redhat or any for that matter.)
Just installed RH v8 and have a few questions on FTP that I couldn't solve with the book that came with CDs.

Question 1:
The book says that if I add user's name to /etc/ftpusers file, than this user will not be able to login. I am specifically talking about the user FTP who can login without password. But it still lets user login anyway. Tried to load/unload/reload vsftpd service, rebooted the box, but nothing seems to help.

Question 2:
From the other side, user ROOT is the owner of all folders, including /var/ftp (default login folder for FTP service). However, user ROOT is not allowed to login to FTP server for some reason. Neither is allowed any other user I create, except user FTP.

Question 3:
I would like that when users login to FTP server they will only be able to see their own /home/username folder "mapped" as root, so that they can't go any level above /username folder.

Thanks.

2 replies

by cpfeiffe

The book is right for the standard ftp (also the most unsecure ftp) that comes with linux. This is started via xinetd. The executable is in.ftpd. You should continue using vsftp which runs in a chroot environment (you can disable that, but I wouldn't). The how-to on vsftp is too long for this forum, but below is a link to a very good site that will get you started. If you need more help just put vsftp in a search engine.

http://www.engardelinux.org/howto/vsftp_howto.html

by laura hradowy

Have you though of useing sftp (SSH) secure ftp.

You can disable the ftp client and run sftp.

Also you should be using ssh for all telnet sessions, and disable telnet and any rsh*

This discussion is closed to new replies.