Score:0

vsftpd : permission denied

ma flag

Running on debian10

My website :

/home/mysite.com drwxr-xr-x 16 www-data www-data 

I added a new user with

adduser alex

Content of /etc/vsftpd.conf

nano /etc/vsftpd.conf

listen=YES
listen_ipv6=NO
connect_from_port_20=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
pasv_enable=YES
pasv_min_port=40000
pasv_max_port=45000
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO

I added alex to vsftpd.userlist

echo "alex" | sudo tee -a /etc/vsftpd.userlist

and added alex to www-data group

adduser alex www-data

Then restarted vsftpd, disconnect and reconnect.

I can connect to sftp on port 22. But when trying to upload a file, got an error

open for write: permission denied

What is wrong ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.