LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-10-2002, 10:01 PM   #1
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Rep: Reputation: 15
Clever plan to save machine didn't work


I have a RH 7.2 system running on a Gateway E-4200. I decided to run an ftp server on it, so yesterday I downloaded, compiled, and installed the latest version of "pure ftp". Everything was going fine until I added the line

Code:
/usr/sbin/pure-ftpd
to my rc.local startup file, and restarted.

The machine came up with a black screen with nothing but a blinking cursor on it. The machine does not respond to any keyboard input.

However, I can tell that the machine is completely up and running fine: it has a Tomcat server and a MySQL database that are both delivering web pages as they normally do. I can hit it with a browser from another machine and get the expected response.

I do not have any kind of shell access to the machine.

So I came up with a plan to shut it down.

On a different machine, used crontab -e to create a crontab entry "*/10 * * * * shutdown -h now". FTP is the only kind of access I have to the machine, so I FTPed /var/spool/cron/root, which, as far as I can tell, contains the crontab entry, from the good machine to the corresponding place on the bad machine. However, that did not cause the machine to shut down.

The only other way I can think of is to interrupt the power.

Any way to get this machine to shut down? Any idea why it's acting like this in the first place? (black screen, no keyboard input.)

Ethan
 
Old 06-10-2002, 10:46 PM   #2
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Won't Ctrl + Alt + F2 open a new tty so you can kill pure-ftp w/ top?

ssh?

ftp your local.rc down, comment the line you added, ftp it back and use ctrl + alt + del to reboot, or hit the power.
 
Old 06-10-2002, 11:11 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You should always have a back door to your system, I prefer a secure one - ssh.
 
Old 06-11-2002, 03:34 PM   #4
Ethan
Member
 
Registered: Mar 2002
Location: California, USA
Posts: 41

Original Poster
Rep: Reputation: 15
As I said, no keyboard input, so couldn't switch to a new tty. I would up just FTPing a new rc.local with the offending command commented out, then interrupting power. Everything was fine after that.

That does demonstrate that I should have a "backdoor" to the machine. I had no telnet on it for security. Don't know how to set up ssh, but I'll investigate.

Thanks,

Ethan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
clever email filter Ygrex Linux - Networking 5 11-17-2005 02:48 AM
if i run iptables-save ... is it permanent even if machine is rebooted? kublador Linux - General 4 08-31-2004 10:25 PM
Wanted: Clever network compartmentalization larstj Linux - Networking 0 07-12-2004 06:39 AM
Now this would be a clever trick.(with APT-GET) bassclarinet Debian 1 03-18-2004 12:33 PM
save me some work! dalton9267 Linux - Newbie 10 03-13-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration