General discussion

Locked

Can't FTP, can't telnet.

By Barry Hensley ·
I have a RedHat Linux 6.2 box. It's about a month old. Everything was working fine and nothing on the box or the network has changed. Now suddenly, I can't FTP to the box or telnet. When I try to telnet, I get the following error:

telnetd: /bin/login: No such file or directory

When I try to FTP, it says "connection closed by remote host" and doesn't even prompt me for a password.

Have I been hacked? I haven't tried to log in locally yet because this box is located several miles away. I'll try that next but, I need to be able to log in remotely.

I'm a newbie and I need some help.

Thanks,
Barry

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Can't FTP, can't telnet.

by Barry Hensley In reply to Can't FTP, can't telnet.

Additional notes:
I went to the machine and found all kinds of cryptic errors the screen that made no sense to me. So, I pressed CTRL+ALT+DEL to reboot. When the machine rebooted, it presented a bunch of errors attempting to load the file systems. Stuff like "bad file descriptor". It gave me the option to enter the root password to enter maintenance mode, which I did.

Now that I am in maintenance mode, I don't have a clue what to do next. When I run the mount command, I can see that / is the only thing mounted, in read only mode. If I try to mount anything else like /home or /var, I get a message that says /mnt can't be found. If I try to create /mnt, I get a message that the file system is mounted in read only mode.

Any clues?

Collapse -

Can't FTP, can't telnet.

by Computechie In reply to Can't FTP, can't telnet.

I would say that something has gone majorly wrong with your setup, possibly a failing hard disk? If it can't find the programs, and is unable to mount the slices then I would guess this is a posibility. There is a chance that you could have had a visitor that figured out your root password, and did a little cleaning out of your /bin directory and whatever else they could find. My first recommendation would be to see if theres any way you can get fsck to run. If this fails or finds errors, I would recommend reinstalling the system, as it seems it's damaged already. Also, on my FreeBSD box, I always make sure that I use letters and numbers in passwords, to make it all that much harder for potential hackers to get into, and never give out su privelages to anyone else. Hope this helps you out.

Collapse -

Can't FTP, can't telnet.

by Barry Hensley In reply to Can't FTP, can't telnet.

Troy, thanks. I do indeed have a disk problem.

My passwords are VERY cryptic. I don't think it's at all possible that somebody guessed them.

Collapse -

Can't FTP, can't telnet.

by cpfeiffe In reply to Can't FTP, can't telnet.

Before you re-install:
You may have trouble with fsck as you may not be able to see it (if /usr is not visible). Try to boot in single user mode from the install CD. You can use the install CDs fsck utility on each file system. If you need to re-install and you have important data you could try to do an image copy of the corrupt disk (ghost, raid and various software tools will allow an image copy of an unmounted file system). This will not give you a bootable disk as bootable files and file system headers are obviously corrupt, but any good data files should be restoreable.

Good luck

Collapse -

Can't FTP, can't telnet.

by Barry Hensley In reply to Can't FTP, can't telnet.

Good info. Thanks for the help.

Collapse -

Can't FTP, can't telnet.

by gotway In reply to Can't FTP, can't telnet.

You should check your /etc/hosts.allow and hosts.deny files. These two files specifies whether the remote connections will be allowed or denied. Also, you should check if your sevices (ftp and telnet) is up or not in the /etc/inetd.conf (remove the# to enable the services or you can add the services yourself).

Collapse -

Can't FTP, can't telnet.

by Barry Hensley In reply to Can't FTP, can't telnet.

I can't get to any of these files because the file systems are not mounted.

Collapse -

Can't FTP, can't telnet.

by Barry Hensley In reply to Can't FTP, can't telnet.

Since the file systems won't mount, I can run any utilities or check the contents of any files. I suspect that I have a disk problem. The machine is only a couple of months old but, the symptoms seem to point to the disk.

I will try booting withthe install CD and use FSCK from this disk to check the hard drive.

Thanks, I'll let you know what happens.

Collapse -

Can't FTP, can't telnet.

by Lintadsl In reply to Can't FTP, can't telnet.

As long as you can mount / then run fsck.
If your hard drive is EIDE, then command would be "fsck /dev/hda1"
If SCSI, "/dev/sha1"
Once fsck run, answer yes for all and reboot after that. R.H will be back and up. Last of errors, you may need to deal with it or post here.

On telnet and FTP issue.
I would check if FTP and telnet deamon runnig or not. If not start them,
"/etc/rc.d/init.d/inet start"

Of course, you should check a user account and FTP configuration. Last step would be hosts.allow/deny.
Still you get a problem, post here.

Have a fun.

Sunny,

Collapse -

Can't FTP, can't telnet.

by Barry Hensley In reply to Can't FTP, can't telnet.

Thanks for the comments but, since I can't mount anything but /, I can't run any commands. The root partition is mounted in read-only mode and I can't change anything either.

Back to Linux Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums