Suse VSFTPD Setup

Posted on 2004-08-04
Medium Priority
Last Modified: 2007-11-27
Hey everyone,

First off I am a nebie to linux and only installed it so I can learn at it.

I am running Suse linux 9.0 with KDE 3.2

I want to enable the ftp server

I was able to install vsftpd and run it from a tutorial guide i found online.

When I add a user to the ftp server for access and assign it a directory, when i login from the local machine everything is fine and the directory i choose shows. When I use my windows computer and type in internet explorer and login the choosen directory appears and everything is fine.

However when I use a ftp client, and login it says the directory choosen can not be found or displayed show the root directory is shown

and then it shows the root folder of my linux box. this is not good nor secure

for the command ive been using useradd admin -d /srv/www/httpdocs

can someone please help me as to why this is happening. Once again I am a newbie to linux so detailed instructions would be needed here.

I am also asking if somsone would tell me how I can delete vsftpd and restall it all over again and start from the begining, and also help as to how to add users to the ftp server to lock them into their own home directory without giving them any way of escaping out and accessing other folders.

Thank you
Question by:krazieintent
  • 3
  • 2

Expert Comment

ID: 11723237
I'm not a SuSE wiz, but it's a RPM distro; so just go to YaST and remove the package using it's browser (software - add/remove packages?). Then go to the same place and install it again. Anyway, it's probably not the case here, unless you have messed with the vsftp conf file.

The option to lock your users at their ftp home dir using vsftpd is the following:

Just open your /etc/vsftpd.conf and uncomment this line (removing the '#' in front of it), or write it if it's not there.

VsFTPD is a very powerful ftp server, read more about it in the man page (man vsftpd, man vsftpd.conf).

Author Comment

ID: 11741434
Thanks a lot adagium that worked, and now the proper directories come up for each user, but I cant upload anyfiles.

I dont know how to set permissions to allow file transer, can you help me set that up please?



Expert Comment

ID: 11745443
Unless you're just toying with the ftp server, I recommend you have a serious look at the man pages related to it; a dangerous configuration might put your system on risk.

From the default vsftpd.conf file:

# General Settings
# Uncomment this to enable any form of FTP write command.

Do that, and remove the '#' from the line write_enable=YES to enable write mode on your ftp.

If you want that the user anonymous to be able to upload also, look for the following:
# Uncomment this to allow the anonymous FTP user to upload files.

Do the same that above and remove the '#' from the anon_upload_enable=YES. Note that it'll only work if the global write_enable flag is uncommented.

Author Comment

ID: 11788550
all of those settings are set but still can not upload.

when connecting from a windows computer

the error is

200 switching to binary mode
200 PORT command successful. Consider PASV
553 could not create file

keep in mind i can download fine

any ideas?

Accepted Solution

Adagium earned 2000 total points
ID: 11790340
So, you're sure that the line is
instead of

If so, create a 'upload' directory under the ftp main dir and run a "chmod 777 upload". If you still can't upload files on it, then I'm not really sure how to get it working...

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question