[PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread Simon Fredriksson
Oops, I did it again! Once again, I've managed to kill SSHd on my server. Hurray! _ What I want to do now, is make a script start it again. I could just reboot the machine the hard way or carry a monitor/keyboard there, but I don't wanna do that at 7am. System: Linux Slackware 8.1 What I

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread Simon Fredriksson
Apache not running as root is a good thing, but probably is... Since it appears you are not the admin of the box, ask them to install Webmin (http://www.webmin.org/webmin) and to give your userid access to the ssh component. Webmin is installed, it's just not turned on. I am the administrator

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread Comex
[EMAIL PROTECTED] Jason Wong: What I'm saying is apache/php has little part to play in system maintenance. Those solutions I proposed are started by root, once they've started they will (hopefully) ensure that sshd would be running, and auto-restarted whenever it is stopped (or in the case of

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread mdg
] To: [EMAIL PROTECTED] Sent: Monday, August 11, 2003 8:14 AM Subject: Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script. Yeah, but as it is, I can't start those things :P I must be root to do so. Apache is not running as root. //Simon Jason Wong wrote: On Monday 11 August

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-14 Thread Jason Wong
On Monday 11 August 2003 21:14, Simon Fredriksson wrote: Yeah, but as it is, I can't start those things :P I must be root to do so. Apache is not running as root. What I'm saying is apache/php has little part to play in system maintenance. Those solutions I proposed are started by root, once

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-11 Thread Jason Wong
On Monday 11 August 2003 13:01, Simon Fredriksson wrote: Anyway; I want to make some sort of PHP backdoor to start sshd again. As far as I know, only root can do so though so just an exec() won't do. How can I switch to root, enter the password and then start sshd via a PHP script that I run

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-11 Thread Marek Kilimajer
edit /etc/inittab and add line ssh:345:respawn:/usr/bin/sshd Then tell init to reread its configuration: kill -1 1 Simon Fredriksson wrote: Oops, I did it again! Once again, I've managed to kill SSHd on my server. Hurray! _ What I want to do now, is make a script start it again. I could just

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-11 Thread Simon Fredriksson
Yeah, but as it is, I can't start those things :P I must be root to do so. Apache is not running as root. //Simon Jason Wong wrote: On Monday 11 August 2003 13:01, Simon Fredriksson wrote: Anyway; I want to make some sort of PHP backdoor to start sshd again. As far as I know, only root

Re: [PHP] [PROBLEM] Killed sshd, want to start it via PHP script.

2003-08-11 Thread Curt Zirzow
* Thus wrote Simon Fredriksson ([EMAIL PROTECTED]): Oops, I did it again! Once again, I've managed to kill SSHd on my server. Hurray! _ I wonder how you can kill ssh. I ssh to my computer 24/7 and never have I killed it. Curt -- I used to think I was indecisive, but now I'm not so sure.