Operating System - HP-UX
1752783 Members
5727 Online
108789 Solutions
New Discussion юеВ

Re: directory not visible in ftp session

 
prasadb
Super Advisor

Re: directory not visible in ftp session

Here is the o/p

ftp> ls -dli
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
226 Transfer complete.

Dennis Handly
Acclaimed Contributor

Re: directory not visible in ftp session

>Here is the o/p

Rats, it doesn't look like it wants to honor those ls(1) options. I don't think quoting them will help?
prasadb
Super Advisor

Re: directory not visible in ftp session

Hmmnn..

any other option plz ?
Steven Schweda
Honored Contributor

Re: directory not visible in ftp session

> Is this user's ftp chrooted?

Well, is it?

If so, FTP LIST ("ls") commands may fail
because the ftp server process can't find an
"ls" program to run (and/or any run-time
libraries which it might need).

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1206014
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=800673
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=7702
[...]

(Forum search for: "ftp ls chroot /sbin/ls")
Steven Schweda
Honored Contributor

Re: directory not visible in ftp session

> Rats, [...]

Better to turn on debugging in the FTP client
program, so that you have some idea what's
actually being sent to the FTP server (than
to curse the darkness).

But if the FTP server is trying to run "ls"
(with or without any particular options), and
it can't find a working "ls", then it won't
matter much what ornate stuff the client
sends.
Dennis Handly
Acclaimed Contributor

Re: directory not visible in ftp session

>any other option plz?

This is what I expected:
ftp> ls -id
227 Entering Passive Mode
150 Opening ASCII mode data connection for /usr/bin/ls.
16 dr-xr-xr-x 5 root other 96 Jul 22 11:25 .
prasadb
Super Advisor

Re: directory not visible in ftp session

hello all,

Thank you very much for your continuous support and interest taken in order to resolve my problem.

well, i have done some changes in /etc/inetd.conf file as below


#ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

previously it was ..

#ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a -d

i removed the "-a" option, and the user is able to view the o/p of "pwd" as well as the "ls" commands.

Though, the problem seems to be solved, the user has got the ablity to delete the files ( under his home directory), which was not the case earlier.

i don't understand the reason behind it, but am sure that you all experts might be knowing the exact cause behind all this.

would anybody like to throw some light on this issue ?

Thank you,
prasad


Dennis Handly
Acclaimed Contributor

Re: directory not visible in ftp session

The -a option enables /etc/ftpd/ftpaccess.
What did you have in that file?
prasadb
Super Advisor

Re: directory not visible in ftp session

Dear Dennis,

plz have a look at the /etc/ftpd/ftpaccess file. i have attached here.

Best Regards,
prasad
Dennis Handly
Acclaimed Contributor

Re: directory not visible in ftp session

>plz have a look at the /etc/ftpd/ftpaccess file.

You have a line that looks strange. Did it get chopped when you pasted it?
renamenoguest,anonymous# rename permission?