Jump to content
Froxlor Forum
  • 0

Not creating ftp directory


philiprbrenan

Question

Posted

I have installed froxlor and configured proftp server on Debian 7.

 

I added an ftp user, tried to transfer a file and got these messages in /var/log/proftpd/proftpd.log

 

notice: unable to use '~/' [resolved to '/var/customers/webs/phil1/']: No such file or directory
Preparing to chroot to directory '~/'
chroot to '~/' failed for user 'phil1ftp1': Operation not permitted
error: unable to set default root directory
FTP session closed.

 

Please advise me how to get froxlor to set up the new user's ftp directory correctly.

 

Thanks,

7 answers to this question

Recommended Posts

Posted

Adjust all settings necessary and then goto "configuration", chose your distribution and then the service to configure. The customer's basedir creation can be found under "Webserver" configuration.

Posted

There are no docs for this now, as it is simply "copy and paste"...please READ carefully what is written on the configuration-templates-page in froxlor, it's all there...as said, chose distro, chose category, chose service -> READ

Posted

After following the webserver configuration instructions and creating a new ftp account phil2ftp2, I have the directory layout below.  When I try to ftp a file I get the same message, that the chroot to '~/' failed for user 'phil2ftp2': Operation not permitted

 

When I create the desired directory manually the ftp operation does succeed.

 

root@techquo:~# ls -laR /var/customers/
/var/customers/:
total 20
drwxr-xr-x  5 root root 4096 Oct  2 12:11 .
drwxr-xr-x 13 root root 4096 Oct  2 10:48 ..
drwxr-xr-x  2 root root 4096 Oct  2 12:11 logs
drwxrwxrwt  2 root root 4096 Oct  2 12:11 tmp
drwxr-xr-x  2 root root 4096 Oct  2 12:15 webs

/var/customers/logs:
total 8
drwxr-xr-x 2 root root 4096 Oct  2 12:11 .
drwxr-xr-x 5 root root 4096 Oct  2 12:11 ..

/var/customers/tmp:
total 8
drwxrwxrwt 2 root root 4096 Oct  2 12:11 .
drwxr-xr-x 5 root root 4096 Oct  2 12:11 ..

/var/customers/webs:
total 8
drwxr-xr-x 2 root root 4096 Oct  2 12:15 .
drwxr-xr-x 5 root root 4096 Oct  2 12:11 ..
 

Please advise me as to how I can ensure that froxlor does indeed create the user's ftp directory.

 

Thanks.

Posted

the customer has not been added by the cronjob (there's no folder for the customer within /var/customers/webs) most likely due to the former missing directory /var/customer/webs/, no customer-directory -> no permission for ftp-user

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...