AIX – How to install ProFTP in AIX

This article I explain how to install ProFTP in AIX 6.1, limiting the access only to user home directory.

Environment

AIX 6.1
ProFTP 1.2.8
FileUtils 4.1.4

Download

The package needed can be downloaded in link below:

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/proftpd/proftpd-1.2.8-1.aix5.1.ppc.rpm

The package File Utils is required to install ProFTP, below the link to downloaded if not installed:

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/fileutils/fileutils-4.1-4.aix4.3.ppc.rpm

Install

Install FileUtils if required:

# rpm -ivh fileutils-4.1-4.aix4.3.ppc.rpm fileutils ##################################################

Install ProFTP:

# rpm -ivh proftpd-1.2.8-1.aix5.1.ppc.rpm proftpd ##################################################

Configure

Now, let’s configure proftp.

To create jail for users uncomment the line “#DefaultRoot ~” in the file /etc/proftpd.conf to:

DefaultRoot ~

To start ProFTP by inetd, change the line “ServerType standalone” in the file /etc/proftpd.conf to:

ServerType inetd

Then, in file /etc/inetd.conf change the line below:

From:

ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd

To:

ftp stream tcp nowait root /usr/sbin/proftpd proftpd -p enable

Make sure that the User “nobody” and the group “nogroup” exist on your system. In my case I changed  the group to “staff”.

In the file /etc/proftpd.conf change the group to:

Group staff

Now, let’s start the ProFTPD with command:

#startsrc -t ‘ftp’