Installation et configuration de Proftpd sous AIX 5.2
Par Nixman le mardi 12 août 2008, 16:46 - AIX - Lien permanent
Fonctionne sous: IBM AIX 5.2
Le serveur ftp historique d'IBM AIX étant relativement limité dans ses capacités de configuration, notamment dans l'utilisation d'environnements chrootés, il est parfois utile d'installer un daemon ftpd alternatif.
1 ) Télécharger coreutils et proftpd depuis le site d’IBM
:
http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/download.html
2 ) Installer coreutils-5.2.1-2.aix5.1.ppc.rpm
et proftpd-1.2.8-1.aix5.1.ppc.rpm
:
rpm –Uvh coreutils-5.2.1-2.aix5.1.ppc.rpm
rpm –Uvh proftpd-1.2.8-1.aix5.1.ppc.rpm
3 ) Modifier /etc/proftpd.conf
####################################################
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a
user/group
# "nobody" and "ftp" for normal operation and anon.
# Modif Nixman: on ne veut pas que le serveur affiche la version de
proftpd
# On remplace ServerName par ServerIdent
ServerIdent on "Serveur
FTP NIXBLOG.ORG"
#
ServerName
"Serveur FTP NIXBLOG.ORG"
# Modif Nixman: Mettre ServerType a inetd au lieu de StandAlone
ServerType
inetd
DefaultServer
on
# Port 21 is the standard FTP port.
Port
21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask
022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances
30
# Set the user and group under which the server will run.
# Modif Nixman: Mettre Group a nobody, car le groupe par defaut n'existe
pas
# sous AIX
User
nobody
Group
nobody
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# Modif Nixman: Tous les utilisateurs du groupe ftpjail sont chrootes
DefaultRoot ~ ftpjail
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite
on
</Directory>
# Ajout Nixman: on veut un log des transfert
Transferlog /var/adm/xferlog.proftpd
## A basic anonymous configuration, no upload directories. If you do
not
## want anonymous users, simply delete this entire <Anonymous>
section.
## Modif Nixman: On ne veut pas de compte ftp anonyme, donc on commente
tout
## le paragraphe
#<Anonymous ~ftp>
#
User
ftp
#
Group
ftp
#
# # We want clients to be able to login with "anonymous" as well as
"ftp"
#
UserAlias
anonymous ftp
#
# # Limit the maximum number of anonymous logins
#
MaxClients
10
#
# # We want 'welcome.msg' displayed at login, and '.message'
displayed
# # in each newly chdired directory.
#
DisplayLogin
welcome.msg
#
DisplayFirstChdir
.message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE>
# DenyAll
# </Limit>
#</Anonymous>
####################################################
4) modifier /etc/inetd.conf
#ftp stream tcp6 nowait
root
/usr/sbin/ftpd ftpd
ftp stream tcp nowait
root
/usr/sbin/proftpd proftpd
5) Relancer inetd:
refresh –s inetd
6) Modifier ftpusers:
Enlever les utilisateurs qui ont droit de se connecter dans /etc/ftpusers, si
le fichier a été créé à l’installation.
7) Créer le groupe ftpjail et y ajouter les utilisateurs à
chrooter:
mkgroup ftpjail
vi /etc/group et y ajouter les utilisateurs qui doivent être chrootées.
8) Retour en arrière possible:
Il suffit de remettre /etc/inetd.conf à l’état d’origine :
ftp stream tcp6 nowait
root
/usr/sbin/ftpd ftpd
#ftp stream tcp nowait
root
/usr/sbin/proftpd proftpd
Ensuite, refresh –s inetd.
Pour désinstaller coreutils et proftpd:
rpm –e proftpd-1.2.8-1
rpm –e coreutils-5.2.1-2
Laissez-moi un commentaire si cet article vous a été utile.
Vous pouvez également suivre quelques liens pour m'assurer un peu de revenu ;-).
Nixman
Commentaires
Hi. Thanks a lot, but when are you going to provide an english translation?
I can understand sort of since I'm canadian, but I think you'd reach a wider public thanks to an english translation.
Hi, fruber,
Will do. Coming soon. Next week probably. Stay tuned ;-).
Nixman