Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need vsftp configuration help

Status
Not open for further replies.

tlgates

Programmer
May 29, 2003
16
US
I've installed vsftp and am trying to configure it to allow anonymous access. I want to be able to ftp to my server through a browser (I currently can ftp using an 3rd party ftp client) so that anyone can access a specific "public" ftp area to place files and download files from. I also want to set up a different directory (username/password protected) to allow users to put & get files from that location as well and restrict them from going anywhere else except to their home directory.

I am currently getting the following error when I try to ftp as anonymous to my server with the URL of ftp://domain.com:
Error: "550 Failed to Change Directory"

I can access the server with a local user using the username/password and it directs me to the home directory for that user but it allows me to change directories to access the entire server. I don't want that. I would like the local users that login to all go to one specific directory but then be able to cd to their home directory.


Here is my vsftpd.conf file:

anonymous_enable=YES
use_localtime=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_root=/ftp/pub
no_anon_password=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
download_enable=YES
ftpd_banner=Welcome to Summit Financial Group FTP service.
banned_email_file=/etc/vsftpd.banned_emails
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES


Your help is greatly appreciate.
Thanks.
 
Just wanted to add:
I have chmod 740 ftp (drwxr-----) with root:users as owner.
I have chmod 744 pub (drwxr--r--) with root:users as owner.

I'm not sure if these are correct to have anonymous be able to access it...obviously not because I getting the error stated above.

What should they be?
Thanks again.
 
The colon isn't part of the URL.

I have my server set up so that I can access it as anonymous. I did a chmod 755 ftp and chmod 755 pub. So that's working.

Now I still need to be able to make it so that the local users ftp in with their username/password and be directed to a certain directory (same directory for everyone) but also have them be able to cd ONLY to their home directory and nowhere else.

How do I do that?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top