Ftp (re)-configuration problem

From: Jean Berthold (jean.berthold@eos-gd.ch)
Date: Thu Dec 05 2002 - 11:57:45 EST


Hello,

I have a problem to re-configure the following packages:

system SUNWftpr FTP Server, (Root)
system SUNWftpu FTP Server, (Usr)

I would like to test the ProFtpd package on a test machine and after my
tests I cannot restart the original Sun
ftp server ...

First test:
----------
Original Sun Ftp softwares:

system SUNWftpr FTP Server, (Root)
system SUNWftpu FTP Server, (Usr)

installation of proftpd:
------------------------
 root@atlanta # pkginfo | grep ftp
...
...
application SMCprof proftpd

root@atlanta # which proftpd
/usr/local/sbin/proftpd

change /etc/inetd.conf for :
---------------------------------
#ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd
ftp stream tcp6 nowait root /usr/local/sbin/in.proftpd
in.proftpd

root@atlanta # pkill -HUP inetd

All tests was ok ...

After these tests I would like to come back to on the original ftp
packages provided by Sun:
(default install)

root@atlanta # pkginfo | grep ftp
application SMCprof proftpd
system SUNWftpr FTP Server, (Root)
system SUNWftpu FTP Server, (Usr)
root@atlanta # pkgrm SMCprof

root@atlanta # pkginfo | grep ftp
system SUNWftpr FTP Server, (Root)
system SUNWftpu FTP Server, (Usr)

Then I changed /etc/inetd.conf for :
--------------------------------------------
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd
#ftp stream tcp6 nowait root /usr/local/sbin/in.proftpd
in.proftpd

root@atlanta # pkill -HUP inetd

Then it will not possible to login on this machine via ftp:
-----------------------------------------------------------
root@atlanta # ftp 0
Connected to 0.0.0.0.
220 atlanta FTP server (SunOS 5.8) ready.
Name (0:root): oracle
331 Password required for oracle.
Password:
530 Login incorrect.
Login failed.
ftp>

root@atlanta # which in.ftpd
/usr/sbin/in.ftpd
root@atlanta # /usr/sbin/in.ftpd -d

root@atlanta # ftp 0
Connected to 0.0.0.0.
220 atlanta FTP server (SunOS 5.8) ready.
Name (0:root): oracle
331 Password required for oracle.
Password:
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.

root@atlanta # tail /var/adm/messages
...
Dec 5 17:48:39 atlanta in.ftpd[435]: [ID 572618 daemon.error]
getpeername: Socket operation on non-socket

Then I tried to re-install proftpd and test again:
--------------------------------------------------
root@atlanta # /usr/local/sbin/proftpd -d9 -n
atlanta -
atlanta - Config for ProFTPD Default Installation:
atlanta - ~ftp/
atlanta - Limit
atlanta - DenyAll
atlanta - UserName
atlanta - GroupName
atlanta - UserAlias
atlanta - MaxClients
atlanta - DisplayLogin
atlanta - DisplayFirstChdir
atlanta - Umask
atlanta - /*
atlanta - AllowOverwrite
atlanta - Umask
atlanta - DefaultServer
atlanta - Umask
atlanta - User
atlanta - UserName
atlanta - Group
atlanta - GroupName
atlanta - Failed binding to 0.0.0.0, port 21: Address already in use
atlanta - Check the ServerType directive to ensure you are configured
correctly.
root@atlanta #

I cannot found where is the problem can you help me ?

Thank you

--
________________________________
Jean Berthold
EOS - energie ouest suisse
Chemin de Mornex 10 , CP 570
CH-1001 Lausanne , Switzerland
Tel. : +41 (0)21 341 24 58
Fax  : +41 (0)21 341 20 49
E-Mail : jean.berthold@eos-gd.ch
________________________________
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:25 EDT