Operating System - HP-UX
1758432 Members
2661 Online
108871 Solutions
New Discussion юеВ

ftpd on non-standard port

 
SOLVED
Go to solution
ute01
Occasional Contributor

ftpd on non-standard port

Hi all,

does anyone know a possibility on HP-UX to have ftpd listen on dedicated non standart ports? (in addition to port 21)

Thanks in advance
Ute Kaldenbach
6 REPLIES 6
Balaji N
Honored Contributor

Re: ftpd on non-standard port

how about duplicating entries in the /etc/services and /etc/inetd.conf file, similar entries like ftp, renaming the service names.

i guess this should work. never tried it. use it at ur own risk.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Sergejs Svitnevs
Honored Contributor
Solution

Re: ftpd on non-standard port

ute01
Occasional Contributor

Re: ftpd on non-standard port

Hallo Balaji,hallo Sergejs
yesterday I tried to duplicate
entries in /etc/services and /etc/inetd.conf

I got:
# inetd -c
# netstat -a
sh: 20433 Memory fault(coredump)

Since I had forgotten ftp-data entry ,I tried again with:

/etc/services:
...
xftp-data 7220/tcp
xftp 7221/tcp

/etc/inetd.conf:
...
xftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

I checked
#netstat -an | grep 7220
#netstat -an | grep 7221

but after
#inetd -c
I again got the coredump
#file core gives
core file from 'netstat' - received SIGSEGV
Balaji N
Honored Contributor

Re: ftpd on non-standard port

hi,
try restarting inetd. and see if there is any errors in the syslog.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
ute01
Occasional Contributor

Re: ftpd on non-standard port

Hallo Bataji,

thanks for your suggestions. There are no errors in syslog.

I quoted my additional entries in services and inetd.conf and made a reboot. netstat again got a SIGSEGV error.
Now something strange: After completely removing the entries and rebooting the machine the error is gone !!

As we have found another solution for our original problem, the need for another ftpd exists no longer.

But this is a very strange behaviour - don't you think so ?

Ute

Balaji N
Honored Contributor

Re: ftpd on non-standard port

pretty strange. sorry i am unable to help.

but as long as ur problem is solved, it is good.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.