I've seen related posts to this issue but not specifically this so I've created a new issue.
Webfm is setup and working fine. I have created directories as user #1 and uploaded files using the webfm interface. I can log in as a different role and access webfm and download the files. What I can't do is ftp. If I try to ftp I get (in FileZilla)

Command:	STOR myfile.txt
Response:	553-Can't open that file: Permission denied
Response:	553 Rename/move failure: No such file or directory

and nothing is uploaded. The webfm directory permissions are set to 775 for all levels below the drupal files path. I have tried changing them to 777 in my CPanel Filemanager but I get "Operation not permitted". I can change permissions at a higher level, e.g. the files directory without problem, I just can't touch anything to do with webfm. I can browse the structure with CPanel Filemanager and all is there, directories and files uploaded using webfm.
My requirement is to bulk upload by ftp - it is only as admin that I need to do this. I use user #1 for full access to webfm - I don't have another role with 'administer webfm' permissions set.

Comments

Tony Sharpe’s picture

As further information. I'm trying to ftp upload directly into where I want the file to be within webfm, and then I will add them to the database. I have seen reference to a separate ftp directory in other posts but I've not seen any documentation on this for this version - was that for an older version?

robmilne’s picture

Status: Active » Closed (won't fix)

Yes, in early versions an 'ftp tree' existed below the current left hand directory tree but it was obsoleted by the addition of the insert icons and the ability of files both in and not in the database to coexist in the UI.

Your ftp issue doesn't relate to the module. You need to confer with your server people. I've been using FireFTP without issue.

Tony Sharpe’s picture

Status: Closed (won't fix) » Active

Thanks. I'm wondering if it relates to the ownership or group set up for the directories by webfm. I can ftp to anywhere (e.g. the files directory) except within the webfm structure. I'll try the hosting company.

Tony Sharpe’s picture

Having talked to the host company, I got the following response:
"WebFM will upload / create files / folders that have the ownership of the apache users on the server (This username is nobody). This means that you will be unable to edit the files / folders created with WebFM without you submitting a ticket to let us know you want the files to be changed back into your ownership. Changing the files ownership will stop them being editable within WebFM ". Further to that I asked if ftp could somehow be setup to have access and they said that they couldn't see how ftp uploading (as apache user) could be allowed (on shared hosting) without a security risk. This all seems to imply that I can't use ftp uploading into the webfm directory on shared hosting.

robmilne’s picture

Status: Active » Closed (fixed)

That can't be right. CPanel has ftp functionality. Demand it.

Tony Sharpe’s picture

I have ftp and CPanel Filemanager access normally, it's just within the webfm directory that I can't access it.

robmilne’s picture

That's weird. On my site I get the same file owner regardless of whether I upload using ftp or the module.

mrwhizkid’s picture

I'm having the same problem only I am running Drupal on a VPS. I can upload using the WFM UI but I can't do anything inside the WFM folder using FTP OR Cpanel.

It's as if WFM has completely taken control of that folder. I don't get it. I would like to be able to upload using FTP but I just can't get it to work.

mrwhizkid’s picture

Ok. Good NEWS. I think I figured out how to get around this problem.

Don't let WFM automaticlaly create the directories for you! Go into the 'Files' folder and create your own folders first and then point to those in the WFM admin settings.

If you manually create the folders, WFM will not hijack your permissions in Cpanel or FTP and you will be able to use either WFM or cpanel to rename files, etc.