Link to home
Start Free TrialLog in
Avatar of cklh
cklh

asked on

Ws-ftpd on Solaris 10 Options

I have ws-ftpd 2.6.2 installed on my Solaris 10 systems.  Whenever I
ftp to this ftp server and do a "dir", it returns the following
errors.  Do you know what am I doing wrong?  thanks!

500 Illegal PORT Command
425 Can't build data connection: Address family not supported by
protocol family.


Here are my settings;


/etc/inetd.conf
==========
ftp     stream  tcp     nowait  root    /usr/sbin/in.ftpd
in.ftpd -a


/etc/ftpaccess
==========
class   all   real *
realuser clv00129
devumask 0133 all
chmod yes real,class=all
umask yes real,class=all
delete yes real
rename yes real
overwrite yes real
limit   all   10   Any              /etc/msgs/msg.dead
readme  README*    login
readme  README*    cwd=*
message /welcome.msg            login
message .message                cwd=*
compress        yes             all
tar             yes             all
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
email user@hostname
upload /export/home/users/clv00129 *                      no
upload /export/home/users/clv00129 /tmp                   yes nodirs
upload /export/home/clv00129 /export/home/clv00129   yes
upload /export/home/clv00129 /export/home/clv00129/* yes
upload /export/home/clv00129 /export/home/clv00129/incoming     yes
clv00129 clv00129 0440 nodirs


/etc/default/inet_type:
================
DEFAULT_IP=IP_VERSION4


/etc/passwd:
=========
clv00129:x:700:700::/export/home/clv00129:/bin/tcsh


Avatar of Tintin
Tintin

Just curious what features in ws-ftpd you need that aren't in the Solaris 10 FTP daemon.
Avatar of cklh

ASKER

My required features (i.e. pwd, dir, get, put...etc)  are all listed if i type "help" in my ftp session.  However, when I issue command like put, dir... I would get an error message like the following.  Any idea how to fix it? Thanks!

ftp> put test
500 Illegal PORT Command
425 Can't build data connection: Address family not supported by protocol family.
ftp> dir
500 Illegal PORT Command
Interesting.  Just answered my first question.  I didn't realise that Sun have based their ftpd on wu-ftpd in Solaris 10.

That makes things a lot clearer.

The error is related to IPV6, but that's a bit strange since you've set IPV4 in /etc/default/inet_type

Did you try restarting ftpd with

svcadm restart ftp

Avatar of cklh

ASKER

I have even rebooted the machine.  but it's still the same old :(

ifconfig -a6 has nothing returns...  However, the wu-ftpd still doesnt' like it.  I am guessing only inet_type doesn't do it.  My question is...   how do I turn off IPv6 on Solaris 10?  

Thanks again for the feedback!
I just re-read your question again and there are some things that don't make sense.

Why do you have an entry in /etc/inetd.conf?  ftpd in Solaris 10 runs under SMF

You also mentioned /etc/ftpaccess, when it should be /etc/ftpd/ftpaccess.  Was that a typo?

Avatar of cklh

ASKER

Here is what I have on the /etc/inetd.conf for the ftpd:

ftp     stream  tcp     nowait  root    /usr/sbin/in.ftpd       in.ftpd -a

The /etc/ftpaccess is not a typo, it's how they specified from the default build (document) also, the build automatically create that file and I just modified it.

You said Solaris 10 runs under SMF?  What's SMF?  Below is my output from the svcs.  What else shoul I check?  Thanks!!

svcs |grep -i ftp
online         23:31:12 svc:/network/ftp:default
So you've installed an additional version of ftpd?  That would certainly explain a few things and why you have a conflict.

As you have /usr/sbin/in.ftpd specified in /etc/inetd.conf, I'm assuming you've overwritten the default Solaris 10 version.

SMF- Service Management Facility

man smf

Virtually nothing is run out of inetd.conf on Solaris 10 any more.
Avatar of cklh

ASKER

Thanks TinTin!

Ah... I didn't know there would be conflict if I have the Solaris 10 built in ftp installed....

Ok, I have removed these Solaris 10 built in ftp.

Afterward, I re-installed the wu-ftpd.  Now I am not able to ftp to the server with wu-ftpd installed.  

Now the question is how do I start up the wu-ftpd?  /usr/sbin/ftprestart did not seem to work.

(NOTE: I have increase the point from 50 to 100.  So I would guarantee Tin Tin should have at lease 50Pt.)
I don't understand why you want to install wu-ftpd when Solaris 10 ftpd is based on wu-ftpd.
Avatar of cklh

ASKER

I need to simulate the site of my company's external customer's ftp site.  According to them.... I need to download the ws-ftpd from http://www.wu-ftpd.org and install on Solaris 10.  Thanks!

How did you uninstall the Solaris 10 ftpd?
How is wu-ftpd installed?  Do you have the /etc/inetd.conf entry?
Avatar of cklh

ASKER

Here are what I did for the uninstall and installing wu-ftpd. thanks!

Uninstalled:
1) comment out the ftp line from /etc/inetd.conf
2) kill -HUP <inetd_pid>
3) svcadm disable /svc/network/ftp
4) pkgrm SUNWftpr SUNWftpu

Install the wu-ftpd:
1) <wu-ftpd_src>/configure
2) make
3) make install (note, I keep all the /etc/ftpaccess etc... file as same as when I specified on the original question)
4) enable back the /etc/inetd.conf ftp line (ftp     stream  tcp     nowait  root    /usr/sbin/in.ftpd       in.ftpd -a)
5) reboot the machine just to make sure it's going up with the new config.  

below is my make output:
[ax-db04/export/home/chui/wu-ftpd-2.6.2]# make
(cd support ; make all)
rm -f libsupport.a
ar cq libsupport.a authuser.o     strcasestr.o   strsep.o
ranlib libsupport.a
(cd util/privatepw ; make all)
(cd src ; make all)
gcc  -g -O2 -I.. -I../support -c -o COPYRIGHT.o COPYRIGHT.c
yacc ftpcmd.y
mv -f y.tab.c ftpcmd.c
sh newvers.sh
gcc  -g -O2 -I.. -I../support -c -o vers.o vers.c
gcc  -g -O2 -I.. -I../support -c -o ftpd.o ftpd.c
gcc  -g -O2 -I.. -I../support -c -o ftpcmd.o ftpcmd.c
gcc  -g -O2 -I.. -I../support -c -o glob.o glob.c
gcc  -g -O2 -I.. -I../support -c -o logwtmp.o logwtmp.c
gcc  -g -O2 -I.. -I../support -c -o popen.o popen.c
gcc  -g -O2 -I.. -I../support -c -o access.o access.c
gcc  -g -O2 -I.. -I../support -c -o extensions.o extensions.c
gcc  -g -O2 -I.. -I../support -c -o realpath.o realpath.c
gcc  -g -O2 -I.. -I../support -c -o acl.o acl.c
gcc  -g -O2 -I.. -I../support -c -o private.o private.c
gcc  -g -O2 -I.. -I../support -c -o authenticate.o authenticate.c
gcc  -g -O2 -I.. -I../support -c -o conversions.o conversions.c
gcc  -g -O2 -I.. -I../support -c -o rdservers.o rdservers.c
gcc  -g -O2 -I.. -I../support -c -o paths.o paths.c
gcc  -g -O2 -I.. -I../support -c -o hostacc.o hostacc.c
gcc  -g -O2 -I.. -I../support -c -o sigfix.o sigfix.c
gcc  -g -O2 -I.. -I../support -c -o auth.o auth.c
gcc  -g -O2 -I.. -I../support -c -o routevector.o routevector.c
gcc  -g -O2 -I.. -I../support -c -o restrict.o restrict.c
gcc  -g -O2 -I.. -I../support -c -o domain.o domain.c
gcc  -g -O2 -I.. -I../support -c -o wu_fnmatch.o wu_fnmatch.c
gcc  -g -O2 -I.. -I../support -c -o timeout.o timeout.c
gcc  -g -O2 -I.. -I../support -c -o getpwnam.o getpwnam.c
gcc  -g -O2 -o ftpd COPYRIGHT.o vers.o ftpd.o ftpcmd.o glob.o logwtmp.o popen.o access.o  extensions.o realpath.o acl.o private.o authenticate.o conversions.o  rdservers.o paths.o hostacc.o sigfix.o auth.o routevector.o  restrict.o domain.o wu_fnmatch.o timeout.o getpwnam.o -L../support -lcrypt -lsocket -lnsl -lresolv -lsupport
gcc  -g -O2 -o ftpcount COPYRIGHT.o vers.o ftpcount.o -L../support -lcrypt -lsocket -lnsl -lresolv -lsupport
gcc  -g -O2 -o ftpshut COPYRIGHT.o vers.o ftpshut.o rdservers.o -L../support -lcrypt -lsocket -lnsl -lresolv -lsupport
gcc  -g -O2 -o ftprestart COPYRIGHT.o vers.o ftprestart.o rdservers.o -L../support -lcrypt -lsocket -lnsl -lresolv -lsupport
gcc  -g -O2 -o ckconfig COPYRIGHT.o vers.o ckconfig.o rdservers.o -L../support -lcrypt -lsocket -lnsl -lresolv -lsupport
if [ ! -d bin ]; then mkdir bin; fi
rm -f bin/ftpd bin/ftpshut bin/ftpcount bin/ftpwho bin/ckconfig bin/ftprestart
ln src/ftpd bin
ln src/ftpshut bin
ln src/ftpcount bin
ln src/ftpcount bin/ftpwho
ln src/ckconfig bin
ln src/ftprestart bin
size bin/ftpd bin/ftpshut bin/ftpcount bin/ftpwho bin/ckconfig bin/ftprestart
bin/ftpd: 162634 + 5924 + 32518 = 201076
bin/ftpshut: 9989 + 900 + 3988 = 14877
bin/ftpcount: 7297 + 892 + 892 = 9081
bin/ftpwho: 7297 + 892 + 892 = 9081
bin/ckconfig: 6672 + 648 + 1904 = 9224
bin/ftprestart: 7304 + 776 + 6008 = 14088
[ax-db04/export/home/chui/wu-ftpd-2.6.2]# make install
(cd support ; make all)
rm -f libsupport.a
ar cq libsupport.a authuser.o     strcasestr.o   strsep.o
ranlib libsupport.a
(cd util/privatepw ; make all)
(cd src ; make all)
if [ ! -d bin ]; then mkdir bin; fi
rm -f bin/ftpd bin/ftpshut bin/ftpcount bin/ftpwho bin/ckconfig bin/ftprestart
ln src/ftpd bin
ln src/ftpshut bin
ln src/ftpcount bin
ln src/ftpcount bin/ftpwho
ln src/ckconfig bin
ln src/ftprestart bin
size bin/ftpd bin/ftpshut bin/ftpcount bin/ftpwho bin/ckconfig bin/ftprestart
bin/ftpd: 162634 + 5924 + 32518 = 201076
bin/ftpshut: 9989 + 900 + 3988 = 14877
bin/ftpcount: 7297 + 892 + 892 = 9081
bin/ftpwho: 7297 + 892 + 892 = 9081
bin/ckconfig: 6672 + 648 + 1904 = 9224
bin/ftprestart: 7304 + 776 + 6008 = 14088
installing binaries.
./install-sh -c -o bin -g bin -m 755 bin/ftpd //usr/sbin/in.ftpd
./install-sh -c -o bin -g bin -m 755 bin/ftpshut //usr/sbin/ftpshut
./install-sh -c -o bin -g bin -m 755 bin/ftpcount //usr/bin/ftpcount
./install-sh -c -o bin -g bin -m 755 bin/ftpwho //usr/bin/ftpwho
./install-sh -c -o bin -g bin -m 755 bin/ckconfig //usr/sbin/ckconfig
./install-sh -c -o bin -g bin -m 755 bin/ftprestart //usr/sbin/ftprestart
./install-sh -c -o bin -g bin -m 755 util/privatepw/privatepw //usr/sbin/privatepw
installing manpages.
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpd.8 //usr/man/man8/ftpd.8
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpcount.1 //usr/man/man1/ftpcount.1
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpwho.1 //usr/man/man1/ftpwho.1
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpshut.8 //usr/man/man8/ftpshut.8
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpaccess.5 //usr/man/man5/ftpaccess.5
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftphosts.5 //usr/man/man5/ftphosts.5
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpconversions.5 //usr/man/man5/ftpconversions.5
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftpservers.5 //usr/man/man5/ftpservers.5
./install-sh -c -m 644 -o bin -g bin -m 644 doc/xferlog.5 //usr/man/man5/xferlog.5
./install-sh -c -m 644 -o bin -g bin -m 644 doc/ftprestart.8 //usr/man/man8/ftprestart.8
./install-sh -c -m 644 -o bin -g bin -m 644 util/privatepw/privatepw.8 //usr/man/man8/privatepw.8
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial