Operating System - HP-UX
1834941 Members
2232 Online
110071 Solutions
New Discussion

Re: ftpaccess and directory listing probelm in ftp client

 
Jawed Akhtar
Advisor

ftpaccess and directory listing probelm in ftp client

Hi,
I have configured ftpaccess file in the follwoing way.
cd usr/newconfig/etc/ftpd
cp -p ftpaccess /etc/ftpd/ftpaccess
vi /etc/ftpd/ftpaccess
change following two lines in ftpaceess as under
delete yes guest,anonymous # delete permission?
guestgroup gorupname_to_be_restricted gorupname_to_be_restricted gorupname_to_be_restricted
vi /etc/inted.conf
and add -a to ftp entry in last as
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -L
$inetd -c "to rearead inetd config file by inetd daemon"

Now this restriction to home directory is working fine and when I connect using commnad prompt ls command list the files in home directory.
THe problem is when I use ftp client software like cuteftp the directory listing is not shown. WE have to manually put the directory names to move inside the restricted directory.

Is there any configuration required on server side or client cuteftp side to view the listing of directory.

Thanks and regards
Jawed AKhtar
2 REPLIES 2
donne007
Regular Advisor

Re: ftpaccess and directory listing probelm in ftp client

Hello Jawed,
Then i Guess it should be the limitation of the ftp clien, Try with some othe client like reflexionftp/hummingbird's exceed.

Good luck
Asif
JJ Smith
New Member

Re: ftpaccess and directory listing probelm in ftp client


You seem to have sorted the standard configuration.

What you've missed is the fact that some clients may want to list the files/directories. As the client is given a 'new' root directory when they connect; you have to put a copy of the 'ls' command in their tree. e.g

ON SERVER SIDE

cd to home_of_restricted_user
mkdir -p usr/bin
cp /usr/bin/ls usr/bin
chown root:grp_to_be_restricted usr
chown root:grp_to_be_restricted usr/bin
chown root:grp_to_be_restricted usr/bin/ls
chmod 510 usr
chmod 510 usr/bin
chmod 510 usr/bin/ls

Hope this helps