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
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
[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
]
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
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
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
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
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
* 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.
9 matches
Mail list logo