Hola a todos !<br><br>Cómo están ?<br><br>He estado haciendo la prueba de montar el pure-ftp server en centos 5.3 con kernel : 2.6.18-164.11.1.el5 y resulta ke al tratar de configurarlo pues nada más no me da acceso, lo he limitado a usuarios anónimos y sólo deseo la conectividad con los usuarios del sistema. Espero ke me puedan echar la mano con esto, no urge, es mera experimentación...<br>
Akí dejo el /etc/pure-ftp/pure-ftp.conf : <br><br>############################################################<br>#                                                          #<br>#         Configuration file for pure-ftpd wrappers        #<br>
#                                                          #<br>############################################################<br><br># If you want to run Pure-FTPd with this configuration   <br># instead of command-line options, please run the<br>
# following command :<br>#<br># /usr/sbin/<a href="http://pure-config.pl">pure-config.pl</a> /etc/pure-ftpd/pure-ftpd.conf<br>#<br># Please don&#39;t forget to have a look at documentation at<br># <a href="http://www.pureftpd.org/documentation.shtml">http://www.pureftpd.org/documentation.shtml</a> for a complete list of<br>
# options.<br><br># Cage in every user in his home directory<br><br>ChrootEveryone              yes<br><br><br><br># If the previous option is set to &quot;no&quot;, members of the following group<br># won&#39;t be caged. Others will be. If you don&#39;t want chroot()ing anyone,<br>
# just comment out ChrootEveryone and TrustedGID.<br><br># TrustedGID                    100<br><br><br><br># Turn on compatibility hacks for broken clients<br><br>BrokenClientsCompatibility  no<br><br><br><br># Maximum number of simultaneous users<br>
<br>MaxClientsNumber            10<br><br><br><br># Fork in background<br><br>Daemonize                   yes<br><br><br><br># Maximum number of sim clients with the same IP address<br><br>MaxClientsPerIP             8<br>
<br><br><br># If you want to log all client commands, set this to &quot;yes&quot;.<br># This directive can be duplicated to also log server responses.<br><br>VerboseLog                  yes<br><br><br><br># List dot-files even when the client doesn&#39;t send &quot;-a&quot;.<br>
<br>DisplayDotFiles             yes<br><br><br><br># Don&#39;t allow authenticated users - have a public anonymous FTP only.<br><br>AnonymousOnly               no<br><br><br><br># Disallow anonymous connections. Only allow authenticated users.<br>
<br>NoAnonymous                 yes<br><br><br><br># Syslog facility (auth, authpriv, daemon, ftp, security, user, local*)<br># The default facility is &quot;ftp&quot;. &quot;none&quot; disables logging.<br><br>SyslogFacility              ftp<br>
<br><br><br># Display fortune cookies<br><br># FortunesFile              /usr/share/fortune/zippy<br><br><br><br># Don&#39;t resolve host names in log files. Logs are less verbose, but <br># it uses less bandwidth. Set this to &quot;yes&quot; on very busy servers or<br>
# if you don&#39;t have a working DNS.<br><br>DontResolve                 yes<br><br><br><br># Maximum idle time in minutes (default = 15 minutes)<br><br>MaxIdleTime                 15<br><br><br><br># LDAP configuration file (see README.LDAP)<br>
<br># LDAPConfigFile                /etc/pure-ftpd/pureftpd-ldap.conf<br><br><br><br># MySQL configuration file (see README.MySQL)<br><br># MySQLConfigFile               /etc/pure-ftpd/pureftpd-mysql.conf<br><br><br># Postgres configuration file (see README.PGSQL)<br>
<br># PGSQLConfigFile               /etc/pure-ftpd/pureftpd-pgsql.conf<br><br><br># PureDB user database (see README.Virtual-Users)<br><br># PureDB                        /etc/pure-ftpd/pureftpd.pdb<br><br><br># Path to pure-authd socket (see README.Authentication-Modules)<br>
<br># ExtAuth                       /var/run/ftpd.sock<br><br><br><br># If you want to enable PAM authentication, uncomment the following line<br><br>PAMAuthentication             yes<br><br><br><br># If you want simple Unix (/etc/passwd) authentication, uncomment this<br>
<br># UnixAuthentication            yes<br><br><br><br># Please note that LDAPConfigFile, MySQLConfigFile, PAMAuthentication and<br># UnixAuthentication can be used only once, but they can be combined<br># together. For instance, if you use MySQLConfigFile, then UnixAuthentication,<br>
# the SQL server will be asked. If the SQL authentication fails because the<br># user wasn&#39;t found, another try # will be done with /etc/passwd and<br># /etc/shadow. If the SQL authentication fails because the password was wrong,<br>
# the authentication chain stops here. Authentication methods are chained in<br># the order they are given. <br><br><br><br># &#39;ls&#39; recursion limits. The first argument is the maximum number of<br># files to be displayed. The second one is the max subdirectories depth<br>
<br>LimitRecursion              7500 8<br><br><br><br># Are anonymous users allowed to create new directories ?<br><br>AnonymousCanCreateDirs      no<br><br><br><br># If the system is more loaded than the following value,<br>
# anonymous users aren&#39;t allowed to download.<br><br>MaxLoad                     4<br><br><br><br># Port range for passive connections replies. - for firewalling.<br><br># PassivePortRange          30000 50000<br><br>
<br><br># Force an IP address in PASV/EPSV/SPSV replies. - for NAT.<br># Symbolic host names are also accepted for gateways with dynamic IP<br># addresses.<br><br># ForcePassiveIP                192.168.0.1<br><br><br><br>
# Upload/download ratio for anonymous users.<br><br># AnonymousRatio                1 10<br><br><br><br># Upload/download ratio for all users.<br># This directive superscedes the previous one.<br><br># UserRatio                 1 10<br>
<br><br><br># Disallow downloading of files owned by &quot;ftp&quot;, ie.<br># files that were uploaded but not validated by a local admin.<br><br>AntiWarez                   yes<br><br><br><br># IP address/port to listen to (default=all IP and port 21).<br>
<br># Bind                      127.0.0.1,21<br><br><br><br># Maximum bandwidth for anonymous users in KB/s<br><br># AnonymousBandwidth            8<br><br><br><br># Maximum bandwidth for *all* users (including anonymous) in KB/s<br>
# Use AnonymousBandwidth *or* UserBandwidth, both makes no sense.<br><br># UserBandwidth             8<br><br><br><br># File creation mask. &lt;umask for files&gt;:&lt;umask for dirs&gt; .<br># 177:077 if you feel paranoid.<br>
<br>Umask                       133:022<br><br><br><br># Minimum UID for an authenticated user to log in.<br><br>MinUID                      500<br><br><br><br># Do not use the /etc/ftpusers file to disable accounts. We&#39;re already<br>
# using MinUID to block users with uid &lt; 500<br><br>UseFtpUsers no<br><br><br><br># Allow FXP transfers for authenticated users.<br><br>AllowUserFXP                no<br><br><br><br># Allow anonymous FXP for anonymous and non-anonymous users.<br>
<br>AllowAnonymousFXP           no<br><br><br><br># Users can&#39;t delete/write files beginning with a dot (&#39;.&#39;)<br># even if they own them. If TrustedGID is enabled, this group<br># will have access to dot-files, though.<br>
<br>ProhibitDotFilesWrite       no<br><br><br><br># Prohibit *reading* of files beginning with a dot (.history, .ssh...)<br><br>ProhibitDotFilesRead        no<br><br><br><br># Never overwrite files. When a file whoose name already exist is uploaded,<br>
# it get automatically renamed to file.1, file.2, file.3, ...<br><br>AutoRename                  no<br><br><br><br># Disallow anonymous users to upload new files (no = upload is allowed)<br><br>AnonymousCantUpload         yes<br>
<br><br><br># Only connections to this specific IP address are allowed to be<br># non-anonymous. You can use this directive to open several public IPs for<br># anonymous FTP, and keep a private firewalled IP for remote administration.<br>
# You can also only allow a non-routable local IP (like 10.x.x.x) to<br># authenticate, and keep a public anon-only FTP server on another IP.<br><br>#TrustedIP                  10.1.1.1<br><br><br><br># If you want to add the PID to every logged line, uncomment the following<br>
# line.<br><br>#LogPID                     yes<br><br><br><br># Create an additional log file with transfers logged in a Apache-like format :<br># <a href="http://fw.c9x.org">fw.c9x.org</a> - jedi [13/Dec/1975:19:36:39] &quot;GET /ftp/linux.tar.bz2&quot; 200 21809338<br>
# This log file can then be processed by www traffic analyzers.<br><br>AltLog                     clf:/var/log/pureftpd.log<br><br><br><br># Create an additional log file with transfers logged in a format optimized<br># for statistic reports.<br>
<br># AltLog                     stats:/var/log/pureftpd.log<br><br><br><br># Create an additional log file with transfers logged in the standard W3C<br># format (compatible with most commercial log analyzers)<br><br># AltLog                     w3c:/var/log/pureftpd.log<br>
<br><br><br># Disallow the CHMOD command. Users can&#39;t change perms of their files.<br><br>#NoChmod                     yes<br><br><br><br># Allow users to resume and upload files, but *NOT* to delete them.<br><br>KeepAllFiles                yes<br>
<br><br><br># Automatically create home directories if they are missing<br><br>#CreateHomeDir               yes<br><br><br><br># Enable virtual quotas. The first number is the max number of files.<br># The second number is the max size of megabytes.<br>
# So 1000:10 limits every user to 1000 files and 10 Mb.<br><br>#Quota                       1000:10<br><br><br><br># If your pure-ftpd has been compiled with standalone support, you can change<br># the location of the pid file. The default is /var/run/pure-ftpd.pid<br>
<br>#PIDFile                     /var/run/pure-ftpd.pid<br><br><br><br># If your pure-ftpd has been compiled with pure-uploadscript support,<br># this will make pure-ftpd write info about new uploads to<br># /var/run/pure-ftpd.upload.pipe so pure-uploadscript can read it and<br>
# spawn a script to handle the upload.<br><br>#CallUploadScript yes<br><br><br><br># This option is useful with servers where anonymous upload is <br># allowed. As /var/ftp is in /var, it save some space and protect <br># the log files. When the partition is more that X percent full,<br>
# new uploads are disallowed.<br><br>MaxDiskUsage               99<br><br><br><br># Set to &#39;yes&#39; if you don&#39;t want your users to rename files.<br><br>#NoRename                  yes<br><br><br><br># Be &#39;customer proof&#39; : workaround against common customer mistakes like<br>
# &#39;chmod 0 public_html&#39;, that are valid, but that could cause ignorant<br># customers to lock their files, and then keep your technical support busy<br># with silly issues. If you&#39;re sure all your users have some basic Unix<br>
# knowledge, this feature is useless. If you&#39;re a hosting service, enable it.<br><br>CustomerProof              yes<br><br><br><br># Per-user concurrency limits. It will only work if the FTP server has<br># been compiled with --with-peruserlimits (and this is the case on<br>
# most binary distributions) .<br># The format is : &lt;max sessions per user&gt;:&lt;max anonymous sessions&gt;<br># For instance, 3:20 means that the same authenticated user can have 3 active<br># sessions max. And there are 20 anonymous sessions max.<br>
<br># PerUserLimits            3:20<br><br><br><br># When a file is uploaded and there is already a previous version of the file<br># with the same name, the old file will neither get removed nor truncated.<br># Upload will take place in a temporary file and once the upload is complete,<br>
# the switch to the new version will be atomic. For instance, when a large PHP<br># script is being uploaded, the web server will still serve the old version and<br># immediatly switch to the new one as soon as the full file will have been<br>
# transfered. This option is incompatible with virtual quotas.<br><br># NoTruncate               yes<br><br><br><br># This option can accept three values :<br># 0 : disable SSL/TLS encryption layer (default).<br># 1 : accept both traditional and encrypted sessions.<br>
# 2 : refuse connections that don&#39;t use SSL/TLS security mechanisms,<br>#     including anonymous sessions.<br># Do _not_ uncomment this blindly. Be sure that :<br># 1) Your server has been compiled with SSL/TLS support (--with-tls),<br>
# 2) A valid certificate is in place,<br># 3) Only compatible clients will log in.<br><br> TLS                      1<br><br><br><br># Listen only to IPv4 addresses in standalone mode (ie. disable IPv6)<br># By default, both IPv4 and IPv6 are enabled.<br>
<br># IPV4Only                 yes<br><br><br><br># Listen only to IPv6 addresses in standalone mode (ie. disable IPv4)<br># By default, both IPv4 and IPv6 are enabled.<br><br># IPV6Only                 yes<br><br># UTF-8 support for file names (RFC 2640)<br>
# Define charset of the server filesystem and optionnally the default charset<br># for remote clients if they don&#39;t use UTF-8.<br># Works only if pure-ftpd has been compiled with --with-rfc2640<br><br># FileSystemCharset    big5<br>
# ClientCharset        big5<br clear="all"><br>Lo ke realmente deseo es (lo vuelvo a repetir) la autenticación de sólo los usuarios ke tengo en el sistema...<br>Ke para hacer pruebas, porke al ver ke no me funcionaba, entonces hice; pure-pw useradd xochilpili -u -1 -g 1 -D /home/xochilpili/ &lt;&lt; pero como ya existe el usuario pues no me dejó, intenté y creé otro usuario con el mismo comando, me pidió el password, pero al momento de internar la autenticación desde otro ekipo: <br>
ftp server<br>...Banner...<br>user (xochilpili) : xochilpili <br>password: *******<br>Login Failed<br>ftp&gt; quit<br><br>Y, por lo visto había fracasado, lo intenté con otro y otro y otro usuario, pero nada más no...<br>
<br>Espero ke me puedan dar un poco de luz para no perderme en el camino, sin duda, he investigado, googleado y demás, pero no kiero usuarios Virtuales, al menos ke sea explícitamente necesario para montar el pure-ftp...<br>
<br>Mil gracias y espero sus respuestas.-<br><br><br>SAlu2<br>-- <br><br>--<br>xOCh<br>210<br><br><br>PS.- Viva CEntOS!<br>