Acceso al al servidor proftpd con el usuario anonymous en modo lectura
Por Aitor López de Aberasturi el Sábado, 14 de Junio de 2014 0 Comentarios
0.- Instalamos el servidor si no lo hemos hecho antes:
apt-get install proftpd
1.- Añadimos al final del documento /etc/proftpd/proftpd.conf la siguiente información:
< Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg < Directory *> < Limit WRITE> DenyAll < /Limit> < /Directory> < /Anonymous>
2.- Reiniciamos el servidor
/etc/init.d/proftpd restart
3.- Probamos el acceso con el usuario anonymous
ftp localhost Connected to localhost. 220 ProFTPD 1.3.4a Server (Debian) [::ffff:127.0.0.1] Name (localhost:aitor): anonymous 331 Anonymous login ok, send your complete email address as your password Password: 230-Welcome, archive user anonymous@localhost ! 230- 230-The local time is: Mon Dec 09 19:34:36 2013 230- 230-This is an experimental FTP server. If you have any unusual problems, 230-please report them via e-mail to. 230- 230 Anonymous access granted, restrictions apply Remote system type is UNIX. Using binary mode to transfer files. ftp>
Nota: En el ejemplo anterior hemos creado un acceso anónimo de sólo lectura. Si queremos que sea de escritura, el contenido del fichero proftpd.conf debería ser el siguiente:
< Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg < /Anonymous>