I recently installed VSFTPD and added a user with the following commands:
useradd -G ftpusers -d /var/www someuser
passwd someuser
I also added someuser
to user_list
and confirmed that it does not exist in ftpusers
. When I try to log in using FireFTP I get a 530 Permission Denied error. vsftpd.conf
has been set to anonymous_enable=NO
but when it was set to YES
, I was able to successfully log in anonymously.
Am I missing something? Should I be setting ownership of /var/www
or something else?
EDIT: I've tried taking root
off of ftpusers
but even when attempting to sign in with root
I get a permission denied error. This would lead me to believe there's something wrong with my vsftpd or server configuration and not the way the user is set up.
I had the same problem and i solved by removing
userlist_deny=NO
in theuser_list.conf
file and add the same line invsftpd.conf
file, then restart the service withservice vsftpd restart
. I had centos 8 installedsomeuser
requires read (and presumably write) access to/var/www
Which permissions does it currently have?
To see permissions, type
ls -l /var
at the command prompt and look at the left hand columns of the file listing. This gives you your file permissions and the user and group that owns the directories/files.Read this first if you are at all unsure: Understanding Linux File Permissions
I set up an FTP server in Ubuntu using something like this guide and mine works well:
http://cviorel.easyblog.ro/2009/03/05/how-to-setup-vsftpd-ftp-on-ubuntu-linux
Does anything here help?
On another note, you should not change the owner of /var/www. As long as your group
ftpusers
has access to to it and vsftpd is running as a user that is a member of the group you should be fine.