AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

Problems getting a long directory listing using a restricted ftp login

  • 1.  Problems getting a long directory listing using a restricted ftp login

    Posted 11/23/09 04:11 PM

    Originally posted by: SystemAdmin


    We are running AIX 5.3 TL9. I recently set up a FTP user with restricted login, by adding the pgrouponly clause to the /etc/ftpaccess.ctl file. I added a modified ./etc/passwd and ./etc/group file to the user home directory, and also a ./bin/ls command. The user can login and download/upload files; however, the long directory listing does not work. All that I can get is the filename; no owner, group or filesize.

    Does anyone know how to get a standard long directory listing for a restricted FTP login?

    Embarrassingly, I have this working on another AIX host, but do not seem to be able to duplicate the setup. Any thoughts?
    #AIX-Forum


  • 2.  Re: Problems getting a long directory listing using a restricted ftp login

    Posted 11/24/09 10:44 PM

    Originally posted by: SystemAdmin


    I found the answer in the script used to setup anonymous FTP: /usr/samples/tcpip/anon.ftp

    Not only do you need to setup bin and etc directories, you also need to setup the lib, usr, and dev directories. The anon.ftp script contains all of the required information. Both "ls" and "ls -l" are now working correctly.
    #AIX-Forum