Operating System - HP-UX
1748093 Members
5805 Online
108758 Solutions
New Discussion юеВ

553 Permission denied on server. (Upload)

 
Myke Fisher
New Member

553 Permission denied on server. (Upload)

I've looked through the threads on the board for a resolution to this issue with no luck. In our case, we do not use the ftpaccess file.

We're running HP-UX 11iv3. I've checked that configuration for the id ftp is correct in /etc/passwd, and the permissions are correct for all of the directories in /home/ftp.

I receive 553 [filename]: Permission denied on server. (Upload)

Is ftpaccess required in order for anonymous ftp to upload files?
12 REPLIES 12
VVS
Regular Advisor

Re: 553 Permission denied on server. (Upload)

What is the entry in /etc/inetd.conf file for ftp?

Check out the upload keyword on the ftpaccess man page and in the /etc/ftpd/ftpaccess file.
Work is life, you know, and without it, there's nothing but fear and insecurity.
Steven Schweda
Honored Contributor

Re: 553 Permission denied on server. (Upload)

I can't easily check the details, but it
seems likely. Anonymous FTP doesn't allow
write access by default, so you'd need to
enable it somewhere, and ftpaccess would seem
to be the likeliest place to do it. (It may
have nothing to do with file or directory
permissions, just a policy of the FTP server
program.)

If the FTP server is generally accessible,
then I'd advise not using "incoming" as the
directory to make writable, as that's what
many of the scripts look for.

man ftpd
man ftpaccess
Myke Fisher
New Member

Re: 553 Permission denied on server. (Upload)

OK, so I went to a test server, and set up anonymous ftp from scratch using SAM. I get the exact same behavior.

Again, I emphasize that I have been told NOT to use ftpaccess. Hence, the entry in the inetd.conf appears as follows:

ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -L -A

It would seem that uploading is denied by default? This really seems odd. There doesn't seem to be a definitive answer among the other threads on this subject.
Steven Schweda
Honored Contributor

Re: 553 Permission denied on server. (Upload)

> It would seem that uploading is denied by
> default? This really seems odd. [...]

Depends on your training. I expect it.
Remember that this is for _anonymous_ FTP,
where more restrictions are the norm. Do you
want the whole world to use your FTP server
as a file storage and distribution site?
(If you build it, they will come. Trust me.)

For normal-user FTP, the server typically
doesn't add any restrictions of its own --
it just respects the usual permissions+ACL
stuff.

> Again, I emphasize that I have been told
> NOT to use ftpaccess. [...]

Again? When was the first time? Any reason?
Steven Schweda
Honored Contributor

Re: 553 Permission denied on server. (Upload)

> There doesn't seem to be a definitive
> answer among the other threads on this
> subject.

Which "the other threads"?

There are some facts in this one:

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1290628

(As I recall, I set up anonymous FTP on an
HP-UX system, just so that I could play
around for that one.)

I can no longer find the official HP-UX "man"
pages in HTML, and I don't wish to suck down
a big pile of PDF files, and my HP-UX systems
are not available at the moment, so I can't
check, but I'd still vote for reading those
"man" topics mentioned earlier.
Steven Schweda
Honored Contributor

Re: 553 Permission denied on server. (Upload)

> There are some facts in this one:
> [...]

And note that, if I'm to be trusted, the only
way I found to get that "553 Permission
denied on server. (Upload)" message was to be
using an ftpaccess file (with no appropriate
"upload" directive" in it). With _no_
ftpaccess file, I got the similar message
without the "(Upload)" part.

So, if you're seeing "(Upload)", I'd tend to
suspect that you really _are_ using an
ftpaccess file. But, of course, with my weak
psychic powers, I must rely on your reports.
Dennis Handly
Acclaimed Contributor

Re: 553 Permission denied on server. (Upload)

> Steven: I can no longer find the official HP-UX man pages in HTML

They are still here, for awhile:
http://docs.hp.com/en/B2355-60130/index.html
Steven Schweda
Honored Contributor

Re: 553 Permission denied on server. (Upload)

Any news?
Myke Fisher
New Member

Re: 553 Permission denied on server. (Upload)

I implemented the ftpaccess file on the test server I set up to replicate the problem. Doing this, I was allowed to upload via ftp anonymously. Unfortunately, my employer still requires that I find out how to do this without using the ftpaccess file.

This is because on servers running previous versions of HP-UX, anonymous FTP uploads are allowed without the ftpaccess file.

Can anyone definitively verify that 11iv3 requires use of the ftpaccess file in order for the anonymous account to upload?