1820882 Members
3686 Online
109628 Solutions
New Discussion юеВ

Re: FTP

 
SOLVED
Go to solution
vijila
Advisor

FTP

Hi all,

I can login to server through ftp.
But 'cd' command is not working.

What may be cause of this error.

REgards,
Vijila
11 REPLIES 11
Raj D.
Honored Contributor
Solution

Re: FTP

Vijila,

Usally cd command works unless you have configured restricted ftp, i.e ftp only account. check your ftp user configuration again. If it is restricted ftp user you need to add permission.

Cheers.
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
vijila
Advisor

Re: FTP

Hi,

Usually we are trying ftp using OS user.
How can i check the permission of the user for FTP and is it a restricted user?

Regards,
Vijila
Steven Schweda
Honored Contributor

Re: FTP

> But 'cd' command is not working.

"not working" is not a good description of
the problem. It might help if you showed an
actual command and the actual message you
get. (And an actual user name, and so on.)

Output fron "ftpd -V" might also be
interesting, along with your HP-UX version.

"man ftpd", "man ftpaccess", and "man
ftpusers" might also be interesting.
vijila
Advisor

Re: FTP

Hi,
The following is the message what i am getting when i tring to use cd command.

230 Login successful.
ftp> cd /usr
550 Failed to change directory.
ftp>
ftp> cd /
250 Directory successfully changed.
ftp> cd /usr
550 Failed to change directory.
ftp>
Steven Schweda
Honored Contributor

Re: FTP

550 Requested action not taken; file
unavailable, not found, no access

So, either it doesn't exist, or you are not
allowed to see it.

Are you logged in a a real user, or as
"anonymous"? (I asked for "an actual user
name" for a reason.)

What are the permissions on the real "/usr"?
There are several options in "ftpaccess"
which can cause a chroot() to be done, and
that can affect what "/" really means. Have
you tried doing a "DIR" command immediately
after logging in? Do you see the real "/"
directory, or something else?
vijila
Advisor

Re: FTP

Hi,

we are trying through OS user.
We ahve done the same thing in other sever as the same user.

Regards,
Vijila
Victor Fridyev
Honored Contributor

Re: FTP

Hi,

Usually ftp users (except special cases) have very limited directory access. FTP daemon uses chroot option, which permits to users access to their home directory only.
/usr and similar directories usually are forbidden for ftp users.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Steven Schweda
Honored Contributor

Re: FTP

> we are trying through OS user.

I don't understand that. Who is "OS user"?

Or just show the whole log-in sequence
(without the actual password).

> We ahve done the same thing in other sever
> as the same user.

So what? That's a different FTP server, so
it may be configured differently.
Raj D.
Honored Contributor

Re: FTP

Vijila,

Try this to debug ...,

# cat /etc/passwd | grep -i ftp_username

check its home directory , what kind of permission has been set. Also check /etc/ftpd/ftpaccess file for access rights,

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: FTP

ITlearner
Frequent Advisor

Re: FTP

Hi,

If you are having ftp problems and if your file content to be transferred is large use third party tool like filezilla,coreftp,leechftp.

But it is advisable to use cmd in ftp always rather than using windows mode.

ITLearner