Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old September 29th, 2002, 12:58 AM
rm-rf/ rm-rf/ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 13 rm-rf/ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sshd down, no console access, need ideas

Basically I upgraded to ssh2, and then restarted the daemon, and was kicked out, and now I cant ssh in. I have no console access, because its colocated.


I have root access via ftp (I cant believe I had it set up like that, but it my save my a$$)

I have the ability to execute shell commands by uploading custom cgi scripts, so the euid is www.


Any idea how I can get a remote shell using these methods?
Ive tried isuing the reboot command via cgi, but it asks if im sure if i want to reboot, and I cant figure out how to get my shell script to say yes.

Tried restarting sshd via cgi, also edited my httpd.conf file so the next time it restarts it is uid 0 (bad idea, i know, but its an option)
but I cant get apachectl to work with a uid of www.

Thanks =)



how do i get my self into these messes??????

Reply With Quote
  #2  
Old September 29th, 2002, 10:06 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
With perl, you can use the Expect module,

http://theoryx5.uwinnipeg.ca/CPAN/d...ect/Expect.html

From the docs:
Quote:
Expect.pm is built to either spawn a process or take an existing filehandle and interact with it such that normally interactive tasks can be done without operator assistance.


As far as running a CGI as root, you're gonna have to figure that out on your own.

Reply With Quote
  #3  
Old October 12th, 2002, 05:09 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Call your host and get them to reboot it. Most colo hosts don't charge for reboots.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > sshd down, no console access, need ideas


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway