1840517 Members
2371 Online
110165 Solutions
New Discussion

Re: ftpd deletion

 
SOLVED
Go to solution
Daniel Aguirre
Occasional Advisor

ftpd deletion

Hi there Im using HP-UX 10.20 , and while making some test with a program that replaces the legacy ftpd daemon i deleted by mistake the original ftpd, How can I get it? and what do I have to do to have the ftp server running again?

Thanks in advance!!!
kuinezco
7 REPLIES 7
Hai Nguyen_1
Honored Contributor

Re: ftpd deletion


Fist off, you can restore it from your backup.

Second, run swlist to identify the package to which ftpd belongs to. Then you can either try to reload the software from your Application CD set or get it from software.hp.com.

Hai
Steven E. Protter
Exalted Contributor

Re: ftpd deletion

Options:

1) take ftpd off of another 10.20 server that you have not messed with.
2) Restore from a fbackup or other backup
3) Open a software case with HP and they'll post a copy of the thing on an ftp site for you to download. Don't foreget to get the permissions right when you are done.

If someone posts up a ftpd binary here, be careful. Make sure its the same release of the wu-ftpd server chcksum, run it through some tests.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Enrico P.
Honored Contributor

Re: ftpd deletion

hi,
get ftpd from anoter server running 10.20.

After this I think you need restart it

Enrico
Daniel Aguirre
Occasional Advisor

Re: ftpd deletion

Actually I downloaded yesterday wuftp 2.6.1 for hpux 10.20, i installed it with swinstall, it installed the sw specially ftpd in:
/var/spool/sw/opt/wu_ftpd/sbin/ftpd

but i copied this ftpd to /usr/lbin, i typed kill -hup (process of inetd) and i tried to open a ftp session and i got:

# ftp babbage
Connected to BABBAGE.
421 Service not available, remote server has closed connection
ftp> by
#

kuinezco
John Bolene
Honored Contributor

Re: ftpd deletion

this would be a good time to implement openssh and use sftp

Was this your only machine running 10.20? Hopefully it is not and you can get the binary from another machine.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Daniel Aguirre
Occasional Advisor

Re: ftpd deletion

hi there, i got the hpux install cd's and i copied the file ftpd from those cd's and i put it under /usr/lbin but when i try to open an ftp connectiom i get the message:

# ftp babbage
Connected to BABBAGE.
421 Service not available, remote server has closed connection
ftp>

and in the syslog.log i get:

the following entry,, i though it was a matter of permissions and owners, so i changed the ftpd file permssions and owners to this way:

-r-xr--r-- 1 bin bin 38474 Jun 25 11:00 ftpd


thanks!!!!!!!1
kuinezco
Bill Hassell
Honored Contributor
Solution

Re: ftpd deletion

ftpd (especially the WU ftpd) is not a standalone program. There are ftp config files needed to control the behavior. First check in syslog.log to see if ftpd is reporting any errors. If there are no entries for ftpd, edit /etc/inetd.conf and turn on detailed logging with: ftpd -l. And make sure that the ftp service has not been disabled in /var/adm/inetd.sec.


Bill Hassell, sysadmin