Results 1 to 2 of 2
Hello Linux cracks. I'm new at using Linux/CentOS.
I have some trouble to connect to an installed and configured vsftpd-Server.
Here some data:
I tried to create two users for ...
- 03-31-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 1
CentOS5 vsftpd connection problems
Hello Linux cracks. I'm new at using Linux/CentOS.
I have some trouble to connect to an installed and configured vsftpd-Server.
Here some data:
I tried to create two users for the use of an ftp-server.
What I have done:
groupadd ftpusers
useradd -M -s /sbin/nologin -g ftpusers trusted
passwd trusted.......
useradd -M -s /sbin/nologin -g ftpusers test
passwd test.......
mkdir /var/ftp/test
chmod 700 /var/ftp/test
chown test /var/ftp/test
vsftpd.conf-File
local_enable=YES
write_enable=YES
chroot_local_user=YES
anonymous_enable=NO
local_root=/var/ftp
userlist_file=/etc/vsftpd/user_list
local_umask=022
dirmessage_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to the directory for the virtual machines.
# listens on IPv4 sockets.
listen=YES
userlist_enable=YES
userlist_deny=NO
max_clients=2
max_per_ip=1
vsftpd_log_file=/var/log/vsftpd.log
xferlog_enable=YES
xferlog_std_format=NO
xferlog_file=/var/log/xferlog
user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
trusted
test
After creating the users and configuration of the vsftpd.conf and user_list, I restarted vsftpds services.
Than I tried to connect with an FileZilla-Client with the name trusted or test. But always I get the Message: 530 Login incorrect
Has somebody an idea what's wrong with my configuration?
If you need some more information about my system, just ask me!
- 04-23-2009 #2Just Joined!
- Join Date
- Apr 2009
- Posts
- 2
What would I do if I were you...
First of all, I'd set homedirs for your trusted and test users in /var/ftp/trusted and /var/ftp/test, respectively (if you want them to be jailed in different dirs). To do this, you can just
usermod trusted -d /var/ftp/trusted
usermod test -d /var/ftp/test
Of course, if /var/ftp/trusted doesn't exist, you have to
mkdir /var/ftp/trusted
Then (and that is the most important step), I'd let registered local users to log in by adding to your vsftpd.conf local_enable=YES.
After that I'd restrict users from writing in root ftp dir:
chmod 555 /var/ftp/trusted -r
chmod 555 /var/ftp/test -r
If you'd like to give write permissions to trusted user, you can
mkdir /var/ftp/trusted/upload
and
chown trusted:ftpusers /var/ftp/trusted/upload -r
chmod 755 /var/ftp/trusted/upload -r
Also, you need to add appropriate lines to your vsftpd.conf.
I don't really get what you meant to do by this:
userlist_enable=YES
userlist_deny=NO
but I would kill second line at least.
p.s. I hope it would help


Reply With Quote