Tom Carroll wrote:
>
> If the configuration file relects the new port and you have
> selected public access to your ftp server and upon reboot it
> does not respond to the configured port, I suggest sending a
> detailed message to bugs@e-smith.org.
>
> If this is not a bug, there may be something hard coded
> somewhere that is overriding the configuration file settings.
Its not a bug....
ftpd is run out of xinetd on e-smith, so changing proftpd's config file will have no effect. This is a quick walkthrough of what I think are the total sum of changes required, try yourself and decide if it works, it worked for me...
Make a file /etc/e-smith/templates-custom/etc/xinetd.conf/30ftp
ie. mkdir -p /etc/e-smith/templates-custom/etc/xinetd.conf/
cp /etc/e-smith/templates/etc/xinetd.conf/30ftp \
/etc/e-smith/templates-custom/etc/xinetd.conf/30ftp
and make the following changes (service -> unlisted, add port, add protocol, add type)
{
my $status = db_get_prop($confref, "ftp", "status") || "disabled";
unless ($status eq "enabled")
{
$OUT .= "\n";
$OUT .= "# proftpd is not enabled in the e-smith services database.";
return;
}
my $accessLimits = db_get_prop($confref, "ftp", "accessLimits") || "private"
;
if ($accessLimits eq "off")
{
$OUT .= "\n";
$OUT .= "# ftp access limits has been set to 'disabled entirely'\n";
$OUT .= "# in the e-smith services database.\n";
return;
}
$OUT .= "service proftpd\n";
$OUT .= "{\n";
$OUT .= " protocol = tcp\n";
$OUT .= " port = \n";
$OUT .= " socket_type = stream\n";
$OUT .= " wait = no\n";
$OUT .= " user = root\n";
$OUT .= " server = /usr/sbin/in.proftpd\n";
$OUT .= "}";
}
ie. replace that with your desired port... (make sure its not something used by another running service /etc/services)
then expand your xinetd.conf file
/sbin/e-smith/expand-template /etc/xinetd.conf
and you should have a section like
service proftpd
{
protocol = tcp
port = 2121
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.proftpd
}
where ftp used to be...
--
Damien