proftpd error 550 cant create folders (but can create/edit/delete files)
Posted: 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
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