1844135 Members
2922 Online
110228 Solutions
New Discussion

ftp in hpux 11.23

 
Nedjema  Ait Mehdi
Regular Visitor

ftp in hpux 11.23

When running ftp on an HP-UX 11.23 system with an absolute path for a file to ftp it fails with an error. see exp.
...
ftp> put /disk01/home/toto/myfile.txt
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.

Is there a procedure/fix for the above error.

Thanks
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: ftp in hpux 11.23

Shalom,

Chek that this path is a filesystem. You can't use ftp to put files on raw disk or the left hand column on a bdf display.

Next, see if the user has permissions to write to that folder. A lack of read permissions anywhere from root down will generate this error.

Quite simply the ftp server is telling you the path /disk01/home/toto/myfile.txt does not or can not exist.

It also could be an issue with the path on the source system but not likely.

The solution is to use a correct path upon which the user has permissions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Nedjema  Ait Mehdi
Regular Visitor

Re: ftp in hpux 11.23

Hi
I am sure it's not a problem with a permission because the ftp of the same file was working in another system an HPUX 11.11. The problem occured after the migration to HPUX 11.23.
Thanks.
Ivan Ferreira
Honored Contributor

Re: ftp in hpux 11.23

Right, it works on another system, but the permission problem could not be on the local system, but the remote system.

So, in the system that does not works, check if:

The /disk01/home/toto/ path exists.
You have permissions to write to that directory
Try running cd /disk01/home/toto/ and see if you have any errors.


Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nedjema  Ait Mehdi
Regular Visitor

Re: ftp in hpux 11.23

The file exists in the right path with the right permission because if i change my ftp as follow :
ftp>lcd /disk01/home/toto/
ftp>put myfile.txt
It will work.
It was working in the old system, it was scripted to work automatically but since we have migrated to another server it stopped working even we imported the same file system and we use the same script to ftp the file.