Operating System - HP-UX
1829997 Members
2917 Online
109998 Solutions
New Discussion

ftp, rlogin, telnet does not work anymore

 
Fritz BRUNI
New Member

ftp, rlogin, telnet does not work anymore

Hi
I was working on an ftp account (restr. user).
here is the ftpaccess file, user demo

class all guest,demo,real *
guestgroup guest,fzhidekl
limit all 5 Any /no-more-ftp-access
noretrieve /etc/passwd core
class all guest,real *
guestgroup guest,fzhidekl
limit all 5 Any /no-more-ftp-access
noretrieve /etc/passwd core
cdpath /
chmod no guest,anonymous
rename no guest,anonymous
#guest-root /home/demo demo

While working on the ftpaccess file, I tested the ftp account and suddenly I could not
connect to the system?

See below:

$ rlogin besvftp1.ezv.admin.ch
rcmd: connect: besvftp1.ezv.admin.ch: Connection refused
$ ftp besvftp1.ezv.admin.ch
Connected to besvftp1.ezv.admin.ch.
421 Service not available, remote server has closed connection
ftp> quit
$ telnet besvftp1.ezv.admin.ch
Trying...
Connected to besvftp1.ezv.admin.ch.
Escape character is '^]'.
Local flow control off
Connection closed by foreign host.

Thanks for help

fritz
4 REPLIES 4
Chris Wilshaw
Honored Contributor

Re: ftp, rlogin, telnet does not work anymore

It sounds like the inetd process has died. If anyone still has an active connection to the system with shell access, you can use that to restart it after su'ing to root

/usr/sbin/inetd

If you have no current session, you'll need to log in on the console and run the command (or get someone else that you can trust to do so if it's at a remote site). If you have to give someone the root password, make sure that it's changed as soon as you have access back.

If you have a modem, you can try to dial in to the server. One last option (before the big one) is if you have an X25 connection set up to the box. padem doesn't require inetd to work so you can use that to connect.

Failing that, it's a reboot of the box.
Ceesjan van Hattum
Esteemed Contributor

Re: ftp, rlogin, telnet does not work anymore

Are the machines on the same subnet? If not, maybe some firewall rules have been changed.
If you cannot find a unix-solution on this, go and talk with the network-administrators.

Regards,
Ceesjan
Fritz BRUNI
New Member

Re: ftp, rlogin, telnet does not work anymore

Thanks for your help,
I tried to connect directly from the firewall, same thing. So I went to the console:
the passwd file is corrupted, the first part of root account is missing.
Regards
fritz
Fritz BRUNI
New Member

Re: ftp, rlogin, telnet does not work anymore

Problem resolved, with hurdles.

Tried to boot from the recovery CD (5012-7970).
got always an error: IPL error: bad LIF magic
*** System alert *** ...

Then I booted from the normal system disk, entered in single user mode. Since I had not to enter a root passwd, I could moutn /var and /usr and edit /etc/passwd.

ftp, telnet and rlogin are working again.
Thanks
fritz bruni