Permmission Denied Error

Core FTP client questions and answers
Locked
jschmidt
Posts: 4
Joined: Tue Jun 25, 2013 1:52 am

Permmission Denied Error

Post by jschmidt »

I am using CoreFTP LE version 2.2 Build 1765. I use the product in a batch file. If I use it to upload a file to public_ftp it connects, I can change directories and everyone is happy. However, when I attempt to use it in order to download files, as soon as I attempt to change directories to public_html I get a "Permission Denied" error.

I am using Site Manager in the batch file and it references a site that uses SSH for both the upload and download versions. If I switch it to straight FTP, then the site manager that points to Public_html works fine.

I am hazy on this but I have been led to believe that SSH is a more secure way to transfer files. I can use Putty to access the site and change directories and everything is fine. However I prefer to use COREFTP.

Can anyone offer me some insights as to what is going on here?
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Try putting the directory in the Advanced -> Directory/folder -> Remote start folder. You can also try toggling the "abs" option.

SSH/SFTP often uses the fully qualified path (ie: /home/user/) instead of a virtualized directory (ie: / or /user).

If it's still not working post the log showing the directory you are using.
jischmidt
Posts: 3
Joined: Tue Jun 19, 2012 4:01 am

Post by jischmidt »

Thanks for your reply.

I tried using the fully qualified path as you suggested and got nowhere except furhter confused.

Here is the command line that I am using

coreftp.exe -site mywebsites -d /public_html/aatest.com/ -p g:\websites_backup\testing -output d:\Data\SBSS\Websites\output.log -log d:\Data\SBSS\Websites\log.log

I am simply trying to backup a site of my choice, 'aatest.com' in this example.

I ran the process twice, first in straight FTP mode using port 21 and second in SSH mode using port 22. Below is a copy of the log file. Please note that I killed the second process as it appeared it was trying to do a CWD to all directories.

06/26/13 13:14 (1765)

Started on Wednesday June 26, 2013 at 13:14:PMResolving ftp.sbsssoftware.com...

Connect socket #936 to 184.154.168.101, port 21...220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

220-You are user number 1 of 50 allowed.

220-Local time is now 13:14. Server port: 21.

220-IPv6 connections are also welcome on this server.

220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

USER sbsssoft

331 User sbsssoft OK. Password required

PASS **********

230 OK. Current restricted directory is /

SYST

215 UNIX Type: L8

CWD /public_html/aatest.com/

250 OK. Current directory is /public_html/aatest.com

PASV
QUIT

221-Goodbye. You uploaded 0 and downloaded 1 kbytes.

221 Logout.

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 3

Total downloaded data: 150

======================================================

06/26/13 13:16 (1765)

Started on Wednesday June 26, 2013 at 13:16:PMResolving ftp.sbsssoftware.com...

ftp.sbsssoftware.com [22] connecting...

SSH-2.0-OpenSSH_4.3
client -> aes128-ctrserver -> aes128-ctr59:44:d9:a1:62:fa:e2:2a:9b:7e:00:80:0c:60:b4:7dssh-rsaSending passwordPWD

Current directory is '/home/sbsssoft'

CWD /public_html/aatest.com/
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Your directory is goign to be something like:

/home/sbsssoft/public_html/aatest.com/

or

/home/sbsssoft/www/aatest.com/


If not sure ask your web host provider or server administrator.
jschmidt
Posts: 4
Joined: Tue Jun 25, 2013 1:52 am

Post by jschmidt »

Would I use the ABS or not? I have tried it both ways and I still get the same results. Any idea why this would work with public_ftp folder and not public_html? I am really hung up on that point. aThe host provider is telling me to switch to Filezilla but CoreFTP is a much better product and I prefer to stick with it.
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Putting in the fully qualified path should work. You should check the ABS option also.
Locked