We are starting CHRISTMAS Sale. Get 30% OFF on lifetime licenses with code: FYSKK72

proftpd error 550 cant create folders (but can create/edit/delete files)

Questions regarding the FTP Server
vsFTPd, ProFTPd
adamjedgar
Posts: 14
Joined: Tue Apr 18, 2017 7:55 am

proftpd error 550 cant create folders (but can create/edit/delete files)

Postby adamjedgar » Thu Sep 07, 2017 9:42 pm

Hi guys,
i have created an additional ftp user for web in vestacp.

strangely enoguh, when i attempt to move files into public_html on the webserver, using ftp client (filezilla, adobe muse, notepad++ etc) i get an error 550 saying that a folder i am trying to copy cannot be created.

Note...files and folders must be able to be written/edited/deleted to the public_html directory to allow Adobe Muse "in browser editing" functionality to work for a website i am building. If adobe muse cannot publish to this directory, the php files needed will prevent in browser editing from working. I am not sure if one could simply upload to an ftp uploads folder on the webserver, then manually move them across to the public_html directory...however, in any case, i cant do this using filezilla anyway at present because of the above error.

I believe i have followed the tutorial on setting up proftpd however, i have noticed that an additional line has been added by some other users to overcome this error. I have tried adding the line mentioned, however this is not working for me. I have also added my additional ftp user (admin_myname) to the www-data group in apache. This also has made no difference.

I note that one thing that i may have done wrong is that i have two web entries under the one user in vestacp. The original one which did not have an external fqdn, and a second one which does have my fqdn. The additional ftp user account in question is being used to access the second website in vestacp. Would this make any difference?

from within shell group membership is as follows for the user in question...

~$ id admin_myusername
uid=1002(admin) gid=1003(admin) groups=1003(admin)

However, www-data is not a group that this user is in...(is this a problem?)
~$ id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data)

From within shell, i have checked user permissions;

admin_mysusername:x:1002:1002::/home/admin/web/mydomain.com.au:/sbin/nologin

and in filezilla permissions are;

public_html File Folder .... flcdmpe (0751) 1002/1003

here is my /etc/proftpd/proftpd.conf

LoadModule mod_vroot.c
ServerName "FTP"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
DefaultServer on
VRootEngine on
DefaultRoot ~ !adm
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
UseReverseDNS off
User proftpd
Group nogroup
MaxInstances 20
UseSendfile off
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
ListOptions -a
RequireValidShell off
MasqueradeAddress <my web server external ip address is here>
PassivePorts 12000 12100

<Global>
Umask 002
IdentLookups off
AllowOverwrite yes
<Limit STOR CWD MKD RMD DELE XRMD XMKD SITE_CHMOD>
AllowAll
</Limit>
</Global>

__________________________________________
UPDATE
i also created a new vestacp user, new website, and ftp account for the new user.
again i have exactly the same problem as above. I can create a file inside this directory but not a new folder. Also, this time some of the filezilla permissions information is slightly different..

public_html ....flxdmpe (0751) 1003/1004 (owner/group)

I am also not understanding the default ftp path with this one...

/home/newusername/web/newusername (why is it doubling up on the user directories? what have i done wrong for this to automatically setup this way?)

________________________________________

finally, why is vestacp not giving new ftp users the correct permissions to be able to create folders within the public_html directory? (they can create/edit/delete files but not folders)

Just to recap...
The original administrator i used to install vestacp can create folders inside their own public html directory (but not any other website public html directory), however, no other ftp users can do that same for their own home public html directories.

Also, the additional ftp users can write files...but not folders in public html

adamjedgar
Posts: 14
Joined: Tue Apr 18, 2017 7:55 am

Re: proftpd error 550 cant create folders (but can create/edit/delete files)

Postby adamjedgar » Mon Sep 11, 2017 12:08 am

I am surprised that no one has been able to help out with this problem.

In the interests of helping someone else who may encounter this problem i think i may have found my solution...

1. When installing vestacp from a brand new install (note your hostname file may be blank):

a. first set hostname to your server name.

- "nano /etc/hostname" and add your desired name to this blank file (ie "server1 or "mywebserver" or "vestacpserver" or "any name you like").

-"ctl x" to exit nano, hit "y" to save, then hit "enter" to overwrite and go back to shell.

b. after setting hostname,

-edit your /etc/hosts file..."nano /etc/hosts"

-underneath 127.0.0.1 localhost... add

<your server external ip address> <hostname>.<yourdomainname> <yourhostname>.

example line to add

56.34.76.23 server1.mydomain.com server1 (note there is a space between "ip address", "host fqdn", and "hostname")

"ctl x" to exit nano, hit "y" to save, then hit "enter" to overwrite and go back to shell.

-my original installation was performed as the linux sudo user...ie "sudo apt-get install..." This may be the cause of my problems.

-in the second installation in which i am now able to create directories as my default administrative user (filezilla ftp client) inside public html, i installed vestacp as root user...

"sudo su" hit enter, then type "cd" hit enter...this will take you back to the main root user directory. From here perform
the vestacp download and install.

2. I did not perform any alterations to the basic installation as performed by the default vestacp install script.

I havent yet tested this with an other websites or users for those websites, however i think my problem should be fixed now as filezilla is now working with the default admin user, whereas before it was not.

hope this helps someone else in the future.


Return to “FTP Server”



Who is online

Users browsing this forum: No registered users and 1 guest