Enable/disabling services remotely without GUI
-
I'm looking for a way to enable or disable a service remotely without using the web GUI. For example, I'd like to stop Snort when I start a vulnerability scan and turn it back on when the scan is finished. Ideally the command to stop snort would be issued as part of a script from the server performing the vulnerability scans. Anyone have any ideas how I might accomplish this?
-
Validity of that sort of change aside, you can start and stop services – but not disable them -- easily using the php shell scripts:
pfSsh.php playback svc stop snort
I don't have a box with snort handy to double check that it actually works, but it does work with other services.
-
Thanks, I'll experiment with this tonight.