1825766 Members
2172 Online
109687 Solutions
New Discussion

Re: anon ftp issue

 
navin
Super Advisor

anon ftp issue

I'm trying to connect to a hp server as anon ftp - access is fine .but not able to upload any file ..as the below error message - anu idea - Thanks

257 "/" is current directory.
ftp> put ypservers
200 PORT command successful.
553 ypse: Permission denied on server. (Upload)
ftp> o
Learning ...
8 REPLIES 8
Autocross.US
Trusted Contributor

Re: anon ftp issue

Looks like you don't have write access to the directory you are trying to upload to.
I drive way too fast to worry about calories.
OldSchool
Honored Contributor

Re: anon ftp issue

if you followed the steps in "man ftpd", then "cd pub" before you put the file and see what happens.

the base directory is not writeable (and shouldn't be), as explained in the man pages
navin
Super Advisor

Re: anon ftp issue

i did cd pub ..but still the same error
thanks
Learning ...
Tingli
Esteemed Contributor

Re: anon ftp issue

There could be two reasons.

1. There is already a same file exists there with permission not available to you.

2. You need to add the ftp's shell name to file /etc/shells, which might need to be created by you as 644 owned by root:sys.
Steven Schweda
Honored Contributor

Re: anon ftp issue

> [...] a hp server [...]

This is not a useful description of the
system or its operating system. "uname -a"?
(Or of its FTP server.)

Knowing nothing, I'd guess that your FTP
server is affected by a configuration file,
like /etc/ftpd/ftpaccess. "man ftpd"?

What's in _your_ ftpaccess file?

Conventionally, anonymous FTP servers do not
allow anyone on the planet to upload files
to them. "man ftpaccess", look for "upload"?


> Looks like you don't have write access to
> the directory you are trying to upload to.

It probably does look like that, but an
anonymous FTP user is actually anonymous, so
the ordinary (user/group-based) permissions
do not apply in the usual way in this case.

> There could be two reasons.

There could be many other reasons, too, many
of which are more likely than these two.
Tingli
Esteemed Contributor

Re: anon ftp issue

If it the reason 2 as I said, it will be stated in syslog.log
Steven Schweda
Honored Contributor

Re: anon ftp issue

> If it the reason 2 as I said, it will be
> stated in syslog.log

If it were the reason 2 as you said, then how
would the user get logged in in the first
place?

Reason 1 as you said is about as likely as
reason 2. Have you ever observed this error
message as the result of trying to overwrite
an existing file? (I haven't.)

A Google search for the error message
(quoted) should find several discussions of
the actual problem.


It might also be useful to show an "ls -l"
report for the "~ftp" directory.

> 257 "/" is current directory.
> ftp> put ypservers

Also, it's unusual to allow uploads to the
anonymous FTP "/" directory. ("/incoming" is
more common. "/incoming" is also one of the
first places which common FTP server attacks
will try, so I would avoid that name.)
Steven Schweda
Honored Contributor

Re: anon ftp issue

> Reason 1 as you said is about as likely as
> reason 2. Have you ever observed this error
> message as the result of trying to overwrite
> an existing file? (I haven't.)

In fact, if you have an (enabled) ftpaccess
file, you _can_ get this one:

553 : Permission denied. (Overwrite)

One way (perhaps the only way) to get this
one:

553 : Permission denied. (Upload)

is to have an (enabled) ftpaccess file, but
not to have an appropriate "upload" directive
in it for the destination directory.
(Without an (enabled) ftpaccess file, the
"(Upload)" part of that message tends to be
missing, so I'd guess that we have one.)

Also interesting:
grep '^ftp' /etc/inetd.conf

"-a" can be useful. ("man ftpd", again.)
But, as I said, the messages suggest that
we're using an ftpaccess file, so I wouldn't
expect that to be the problem here.

Without an (enabled) ftpaccess file,
overwrites are permitted, and a permission
(or owner) problem on the destination
directory gives an error message without the
"(Upload)", like:

553 : Permission denied.


But, hey. Show me some evidence instead of
pontificating stuff which I can't believe,
and you might persuade me that you know more
than you seem to.