Forum Index \ DriveHQ Customer Support Forum \
Read/Reply : 39761/3
  • lamersoft
  • (3 posts)

Dear drivehq.com. I am a new user but so far i am very satisfied with your service. But i have a small prolem, whch i tihink you will be able to help me.

I am using ubuntu 11.10 and I want to write a small script which will upload/update a certan file once a day. I do i using this script belo. I connect, change the mode to passive and the file transfer mode to binary, but when i use the put command (i intend to upload in the root directory) i have an error. Please help me.

lamersoft@Rosen-PC2:~$ sudo ftp -i -n ftp.drivehq.com
[sudo] password for lamersoft:
Connected to ftp.mbizgroup.biz.
220 Welcome to the most popular FTP hosting service! Save on hardware, software, hosting and admin. Share files/folders with read-write permission. Visit http://www.drivehq.com/ftp/;
ftp> passive
Passive mode on.
ftp> user my_username my_password
331 User name ok, need password.
230 User logged on. Free service has restrictions and is slower.
Remote system type is UNIX.
ftp> binary
200 Type set to I
ftp> cd /
250 CWD command successful. "/" is current directory.
ftp> put /home/lamersoft/P
local: /home/lamersoft/P remote: /home/lamersoft/P
227 Entering Passive Mode (66,220,9,50,51,48).
550 Permission denied.
ftp>

 

What should i do? Please help.


3/2/2012 5:47:43 PM

  • DriveHQSupport
  • (651 posts)
Subject: Re:Error 550 Permission denied ubuntu script

Do you have this folder ( /home/lamersoft/P ) already created? If not, please create the folder first.

Please try to change:

put  /home/lamersoft/P

to:

cd  /home/lamersoft

put p

 

 

 


Reply
3/2/2012 5:58:14 PM

  • lamersoft
  • (3 posts)
Subject: Re:Error 550 Permission denied ubuntu script

Thank you for the fast response. I have created on the ftp folder /home/lamesoft and after that i could upload the file P.zip to it. My question is. If the file P.zip is situated on my computer in /home/lamersoft how can i upload it on the ftp in directory called /lamersoft/ ?


Reply
3/3/2012 1:53:16 AM

  • lamersoft
  • (3 posts)
Subject: Re:Error 550 Permission denied ubuntu script

* FIXED Again thank you very much for your tips. The solution to my problem:

ftp -i -n ftp.drivehq.com
passive
user my_username my_password
binary
put /home/lamersoft/P.zip /lamersoft/P.zip
 


Reply
3/3/2012 3:22:56 AM

Quickly Reply

Please logon and reply, Not DriveHQ Member?


Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003