1833758 Members
2565 Online
110063 Solutions
New Discussion

ftp put problem

 
Berson Mark
Occasional Contributor

ftp put problem

Hi

i have a strange problem , i can go a get to a file but a put command is stuck .
there isnt any error ( extend of file , zero size )

i m working with hp-ux 11.11 with ftp patch :
PHNE_23950 1.0 ftpd(1M) patch
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: ftp put problem

Kind of vague about what you are doing.

If you are having a problem doing a put on the server with the patch and the filesystem is not full, check all filesystems. Maybe /var is full and the log entry in /var/adm/syslog/syslog.log is full. Take appropriate action.

You might have a permissions problem on the directory the file is to be placed. If permissions don't allow write to the user in question, then that should be corrected, though there should be an error.

If this is an isnstallation error for the patch, please post it.

If you are trying to post a patch to an anonymous ftp server, thats kind of a no no, only people with service contracts can do that. I have guessed what you are actually doing is trying to post the patch for later installation.

If I've guessed correctly perhaps I've posted a solution.

I wasn't in Hogwarts very long and miserably failed Mrs. Trewarlry's class based on "InFogging the Future", so please post a more detailed sequence of events so someone can help you.

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
Wouter Jagers
Honored Contributor

Re: ftp put problem

First question would be "the account does have read -and- write permissions to the directory, right ?", but I guess you checked. I also assume there's enough space left on the filesystem.

Are you trying this with a user account, or with the root account ? If it works with the root account, you can rule out problems with the ftp daemon itself.
an engineer's aim in a discussion is not to persuade, but to clarify.
Bill Hassell
Honored Contributor

Re: ftp put problem

Along with permission checks, be sure you know the syntax for put. put normally has two parameers, source and destination. If you just use a single filename, then that name is replicated into the destination field. So far so good except if you put something like /etc/passwd as an ordinary user. The remote system will see /etc/passwd as the destination so an ordinary user will be denied access. And unlike cp, the put command's second parameter must be a filename, not a directory, so "put /etc/passwd /tmp" will also fail.


Bill Hassell, sysadmin
Keith Bevan_1
Trusted Contributor

Re: ftp put problem

Mark,

All good observations and recommendations previous. Have you also checked that your source file is greater than zero bytes.

Keith
You are either part of the solution or part of the problem
Dagmar Boelen
Frequent Advisor

Re: ftp put problem

Create a telnet session to the target server. Log in with the user which you use to login with the ftp-session and go the directory in which you want to put a file. Ty touch testfile if this works you have write-permission with this user on the correct directory.