Page 1 of 1

FTP User/Owner can't MKD - FIXED

Posted: Sun Sep 07, 2014 4:55 pm
by uksitehost
I have an issue with users not being able to add a directory via FTP to their public_html directory. They can add files no issues. Obviously, as this is the first time I have tried vestaCP and first time I have used Ubuntu Server I have had set up issues. This would appear the only one I can't find a solution for. Otherwise all is working fantastically, I have replaced vsftpd with proftpd. as originally FTP wouldn't work at all.

vesta core package Version: 0.9.8 (amd64) & Ubuntu 14.04 (x86_64).

If I can get this issue resolved I am definitely going live with this setup!

Re: FTP User/Owner can't MKD

Posted: Tue Sep 09, 2014 12:19 pm
by uksitehost
can anybody help?

Re: FTP User/Owner can't MKD

Posted: Tue Sep 09, 2014 1:21 pm
by Petronius
I can confirm I have the same issue. It is pretty much out of the box setup with proftpd.

Re: FTP User/Owner can't MKD

Posted: Tue Sep 09, 2014 2:15 pm
by uksitehost
I don't know if this changes anything but my server is not a VPS, it's my own hardware in my own house.

Re: FTP User/Owner can't MKD

Posted: Tue Sep 09, 2014 7:06 pm
by uksitehost
Ok, its fixed. it would appear there is an issue with the vestacp proftpd.conf that you overwrite the default proftpd.conf with.

I renamed the file from vestacp

Code: Select all

mv /etc/proftpd/proftpd.conf /etc/proftpd/backupproftpd.conf
The I found an easy way of putting a working default back in.

Code: Select all

wget https://gist.githubusercontent.com/samurailink3/5388226/raw/e138f7a918a5f8936daf8238e975e28dfddb9745/proftpd.conf -O /etc/proftpd/proftpd.conf
then

Code: Select all

service proftpd restart
For some reason you still have to restart proftpd in the services on CP - that also happened previously!

then

Code: Select all

vi /etc/proftpd/proftpd.conf
edit the line ServerName "Debian" - change Debian to yourhostname

and ensure default root is uncommented (remove # if its there)

Code: Select all

# Use this to jail all users in their homes 
DefaultRoot			~
Done

Re: FTP User/Owner can't MKD - FIXED

Posted: Sun Feb 22, 2015 9:06 pm
by tristar
Hello,
MKdir problem occured in my server via ftp connection, like yours.

Version: 0.9.8 (amd64) & Ubuntu 14.04 (x86_64)

MKD problem solved as below in my server.

VRootEngine parameter may not using anymore on latest proftpd versions.

Code: Select all

vim /etc/proftpd/proftpd.conf
find

Code: Select all

VRootEngine                     on
replace

Code: Select all

# VRootEngine                     on

Code: Select all

service proftpd restart

Re: FTP User/Owner can't MKD - FIXED

Posted: Mon Mar 23, 2015 2:39 pm
by markhaines
This worked for me - thanks so much!