Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Cannot setup a new user for vsftpd FTP server. My http server's root directory is in /var/www/someuser Main user has it's home directory in /home/mainuser When I login with this user, it's Okay, but I need to get access to /var/www/someuser I did the following:

useradd -d /var/www/someuser -p *** someuser
addgroup ftpusers
usermod -aG ftpusers someuser
chown mainuser:ftpusers /var/www/someuser
chmod 0775 /var/www/someuser

But when I'm trying to login with vsftpd, it tells that login is incorrect. What I'm doing wrong?

vsftpd.conf:

listen=YES
anonymous_enable=NO
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
ftpd_banner=some text
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
check_shell=NO
rsa_cert_file=/etc/ssl/private/vsftpd.pem
userlist_file=/etc/vsftpd_user_list (empty file)
userlist_enable=YES
share|improve this question

1 Answer 1

Actually I resolved this problem. Spent some hours resolving problem. The solution was simple: change password of a user with

passwd someuser

The -p parameter of useradd doesn't work as I can see, although it says that it sets encrypted password of a new account.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.