Koozali.org: home of the SME Server

ftp ports

derek

Re: ftp ports
« Reply #15 on: April 14, 2002, 08:38:10 AM »
thanks very much Damien seems to be putting me on the right track
i am not getting a socket error now on ftp but now i get this
ftp.mydomain.com:2121 (ip = 192.168.104.1)...
STATUS:>     Socket connected. Waiting for welcome message...
ERROR:>      Control connection closed.
STATUS:>     Waiting 30 seconds...

i am trying to ftp as Admin with my admin pass
and i tried with root
is there anything else you could suggest to rectify this ?
thanks

Derek

derek

Re: ftp ports
« Reply #16 on: April 14, 2002, 08:38:16 AM »
thanks very much Damien seems to be putting me on the right track
i am not getting a socket error now on ftp but now i get this
ftp.mydomain.com:2121 (ip = 192.168.104.1)...
STATUS:>     Socket connected. Waiting for welcome message...
ERROR:>      Control connection closed.
STATUS:>     Waiting 30 seconds...

i am trying to ftp as Admin with my admin pass
and i tried with root
is there anything else you could suggest to rectify this ?
thanks

Derek

Terry Brummell

Re: ftp ports
« Reply #17 on: April 14, 2002, 08:39:18 AM »
Thank You Damien!!  That worked like a charm.  I'm surprised no one has caught this before, it has been brought up so many times in the past few months.

Thanks again!

Terry Brummell

Re: ftp ports
« Reply #18 on: April 14, 2002, 08:42:27 AM »
Derek, did you restart xinetd after you expanded the template so it actually uses the new port?

service xinetd restart

Tom Carroll

Re: ftp ports
« Reply #19 on: April 14, 2002, 12:48:24 PM »
From what I gather now, the proftpd.conf file can be deleted and the system will still run?  If that is true then why is there a template for it?  Such as 05port.  This really needs to be corrected because Derek and Terry have been on a wild goose chase.

Thanks for the information Damien!

Tom Carroll

derek

Re: ftp ports
« Reply #20 on: April 14, 2002, 07:03:45 PM »
well everyone seems to be on but me. Terry i did the restart as you mentioned but still no connection
i dont get the port error just "control connection closed"
could this be from touching the proftpd.conf file before? or just 1 error in code somewhere, or the name that i am logging in under.
look forward to your reply

thanks

Derek

Terry Brummell

Re: ftp ports
« Reply #21 on: April 14, 2002, 10:38:47 PM »
I don't think the old proftpd.conf file is affecting it.  My proftpd.conf file still shows the old port I was trying to use (different then what I setup in xinetd), so I don't think that is causing any problems.  I'm not sure why you're getting that.  Are you using a ftp client?  Have you tried ftp'ing straight from a command prompt on your client (2K or XP, don't think 9x has an included ftp program).  Have you tried connecting directly from the server using a command shell?

derek

Re: ftp ports
« Reply #22 on: April 15, 2002, 10:25:16 PM »
i am ftp connect via cuteftp and got the error msg previously posted
here is what i have in the conf file let me know if u think this is fine
thanks

Derek


File: 30ftp             Col 0              806 bytes                                                                     100%
{
    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                   = 2121\n";
    $OUT .= "    socket_type            = stream\n";
    $OUT .= "    wait                   = no\n";
    $OUT .= "    user                   = root\n";
    $OUT .= "    server                 = /usr/sbin/in.proftpd\n";
    $OUT .= "}";
}

Terry Brummell

Re: ftp ports
« Reply #23 on: April 16, 2002, 02:19:37 AM »
It's the same as mine, except I'm using a different port.  Don't know what else to tell you.
Have you tried ftp'ing directly from a console session on the server?

derek

Re: ftp ports
« Reply #24 on: April 16, 2002, 09:19:44 AM »
sorry terry i dont get ya
console session on the server ?? can you explain
i really dont know why this wont work
can you confirm that yours is working on the new port from both inside and outside the network ?
my problem is both inside and outside the serverbox
Damien or terry your assistance is appreciated
thanks

Derek

Michiel

Re: ftp ports
« Reply #25 on: May 15, 2002, 08:15:45 PM »
Hey same problem here but a question

when I expand the file xinetd.conf to /etc/xinetd.conf it say's

"ERROR /etc/xinetd.conf/ftp30 not such file or directory :? does anybody know's this

Michiel

Re: ftp ports
« Reply #26 on: May 16, 2002, 05:43:19 PM »
nobody ???

Tom Carroll

Re: ftp ports
« Reply #27 on: May 16, 2002, 08:19:51 PM »
I looked in my /etc/e-smith/templates/etc/xinetd directory and I do not have that file either.  What I do have is 30ftp.  I think that was probably your error.

Does that file exist in your directory?

If not, here it is:

{
    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 ftp\n";
    $OUT .= "{\n";
    $OUT .= "    socket_type      = stream\n";
    $OUT .= "    wait         = no\n";
    $OUT .= "    user         = root\n";
    $OUT .= "    server         = /usr/sbin/in.proftpd\n";
    $OUT .= "}";
}

Michiel

Re: ftp ports
« Reply #28 on: May 17, 2002, 12:14:48 AM »
Thanx but that ain't the problem I think

when I tried to expand the file

I use this

 /sbin/e-smith/expand-template /etc/xinetd.conf
                [ ERROR ]
Cannot process template /etc/e-smith/templates-custom//etc/xinetd.conf/30ftp: No such file or directory

Thanx in advance

Michiel

Tom Carroll

Re: ftp ports
« Reply #29 on: May 17, 2002, 01:54:36 AM »
You didn't mention if that file exists or not.

If it does exist, have you modified it in any way?

You do customize your templates in the /etc/e-smith/templates-custom directory don't you?

If the file exists and is verbatim what I posted, I would say you have modified something else and it cannot locate the e-smith configuration file due to a variable change or permissions problem.  I think root has permission for everything even if the permissions are set to not allow anyone to read or write the file.

If everything checks out, I am at a loss as to what the problem is and I doubt I am any further assistance to you...  Sorry.

Tom Carroll
Dataware Computers