Operating System - HP-UX
1847252 Members
3023 Online
110263 Solutions
New Discussion

Re: Ftp user can't list files using GUI program

 
Bobby George
Occasional Contributor

Ftp user can't list files using GUI program

The ftp user I've created on the system can login but cannot see the file using some GUI ftp program. But when ftp using DOS you can list the files,directories and create directories. File will list only using ls. Dir doesn't work. The user have the following entry in the
/etc/passwd
user:pass:4444:210:/home/user/./:/usr/bin/false

and part of the ftpgroup. Am I missing something.
OS 11.00

5 REPLIES 5
Christopher Caldwell
Honored Contributor

Re: Ftp user can't list files using GUI program

What's in /home/user/./?

I think you might need a copy of /sbin/ls in
/home/user/bin
LB4
Valued Contributor

Re: Ftp user can't list files using GUI program

Do you have /etc/ftpd directory with a ftpaccess file?
Look at the man page for ftpd and ftpaccess.
man ftpd
man ftpaccess
Rita C Workman
Honored Contributor

Re: Ftp user can't list files using GUI program

Under the ftp users account do the following:
cd /home/
mkdir bin
cp /usr/bin/pwd /home//bin
cp /sbin/ls /home//bin
chmod 0111 /home//bin/ls
chmod 0111 /home/
This will give the user the ability to use the ls (to list) and pwd (list present working directory) commands. The 'dir' command is a dos command and was not part of the ftp command structure.

Hope this helps,
Rita
Shannon Petry
Honored Contributor

Re: Ftp user can't list files using GUI program

First, to chroot a user, the format is "/basedir/./dir" and NOT /basedir/./:/dir.
See my ftpd faq at www.invenioeng.com/systems/ftpd_faw.html
I have a pretty detailed doc on configuration of wu_ftpd, and all of the control files documented.

It looks like too that you have a /basedir/bin/ls which should be copied from /sbin/ls. you should also copy this file to /basedir/bin/dir. The GUI may be using a DIR command instead of LS command to get data, and this would be the cause and solution.

Regards,
Shannon
Microsoft. When do you want a virus today?
Shannon Petry
Honored Contributor

Re: Ftp user can't list files using GUI program

Ooops. The URL should be "http://www.invenioeng.com/systems/ftpd_faq.html"

Sorry for the fat fingers.....

Shannon
Microsoft. When do you want a virus today?