Operating System - HP-UX
1830933 Members
1944 Online
110017 Solutions
New Discussion

Restricted FTP unable to view file by ls

 
Farida Rajkotwala
Occasional Contributor

Restricted FTP unable to view file by ls

hello!
I was wondering if someone can guide to
enable restricted ftp on my system.
So that the users can not look at the listing
by ls, they can get the files that they
know exist.

Thanks,
Farida
Doing something imperfectly is better than doing perfectly nothing
3 REPLIES 3
Berlene Herren
Honored Contributor

Re: Restricted FTP unable to view file by ls

On 11.X you can install the latest FTP patch and enable WU-FTPD functionality. After installation, there is a great file place in /usr/share/doc that explains how to use this functionality. Perhaps that will help.

Unfortunately, this is not supported on 10.20

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Rob Mallard
Valued Contributor

Re: Restricted FTP unable to view file by ls

If you change the UNIX permissions on the directory to execute only then a user (including a ftp user) can cd to the directory but ls will report 0 files:

chmod 711 /ftpdir
Rita C Workman
Honored Contributor

Re: Restricted FTP unable to view file by ls

If you've created a restricted FTP, did you remember to create (under the restricted users home directory) a bin directory and then do:

cp /usr/bin/pwd /home//bin
cp /sbin/ls /home/bin
chmod 0111 /home//bin/ls
chmod /home//bin/pwd
chown root /home//bin
chmod 0555 /home//bin

Just a thought,
/rcw

..please note above to copy ls from /sbin !!