3

CentOS - I have created an ftp user that can log in remotely over the internet to the vsftpd server.

Now I can log in via ftp, see all the directory listings (not limited/jailed) to any directory, but I cannot create a new folder inside /var/www/html

When I want to create a new directory, it fails:

550 Create directory operation failed

Note, that I have done the following:

chmod 775 as well as chmod 777

as the root user on the server itself (using putty).

How do I get write access to a specific folder for an FTP user?

Note: I have the following permissions:

drwxr-xr-x. 6 david root 4096 Jul  7 20:30 html

3 Answers 3

2

Have you typed

write_enable=yes

in your

/etc/vsftpd/vsftpd.conf

otherwise you could use

chroot_local_user=yes

for ftp users being able to login as local users. Hope that helps

0
1

Identify file vsftpd.conf

Edit it: vi /etc/vsftpd.conf

and then uncomment(#) the line: write_enable=yes

and finally, restart vsftpd: service vsftpd restart

2
  • 1
    It is already answered. Nothing new.
    – Prvt_Yadav
    Aug 6, 2018 at 9:29
  • But above answer, it not easy to understand for new member go to linux OS
    – MrTo-Kane
    Aug 6, 2018 at 9:32
1

Let's do this. In /etc/vsftpd.conf add or uncomment these:

anon_mkdir_write_enable=YES

Then, systemctl restart vsftpd

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .