[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] disable SSH at will + change .cgi file permissions
- Subject: Re: [cobalt-users] disable SSH at will + change .cgi file permissions
- From: "H.P. Stroebel" <hpstr@xxxxxxxxxxxxx>
- Date: Fri Dec 1 15:00:01 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
BobbyT schrieb:
> I installed the SSH from pkg.nl.cobalt.com. However, I was wondering if
> there was a way to turn SSH on and off at will, like you can with telnet
> from the control panel. Is there a way I can setup an outside cgi
> script to turn on and off the service? Going in through telnet to turn
> it on and off sort of defeats the purpose of SSH :)
you could hack the cobalt scripts or use webmin. another possibility
would be to write some email processing routine, so you can start/stop
it sending a mail to your server. such a script would have to run as
root (like the cobalt admin server does). quite risky.
the disadvantage of all this methods is that to start it up you depend
on another service that could crash. instead, you could restart a
crashed service with ssh.
so why stop it at all ?
i did never have any problems with ssh (the only way that i know to
create problems is updating ssh having remote shell access using ssh
itself)
so, a simple and clean way without any strange constructions would be to
add it to your startup scripts; in case of a crashed ssh you could at
least reboot the server to restart it.
> Also a cgiwrap question, What if a user is trying to install a message
> board (i.e. Matt Wright's wwwboard) and gets me to chmod the files to
> their proper permissions. Would these permissions stay or would cgiwrap
> default all .cgi and .pl files back to 755? How can I overcome this?
AFAIK cgiwrap does not touch any file permissions.
--
H. P. Stroebel, Germany
CGI-FAQ for Raq-Newbies :
http://users.iol.it/hpstr/
Apollo 13 - Commander : "Houston, we have a problem"
Win2000 - Administrator : "Redmond, we have 64000 problems"