NeilSec: Security Learning Blog

Pentesting, infosec, hacking, learning.

  • Home
  • Knowledgebase
You are here: Home / Linux / Services

Services

2018-01-16 by Neil Leave a Comment

service command

service ssh start
service ssh stop
the service command is a wrapper for the system init scripts in the /etc/init.d directory

You can use the init scripts directly:
/etc/init.d/ssh start
/etc/init.d/ssh stop

systemmd / systemctl

Many linux distros now use systemmd as an init system manager. Kali usees it. To start a service controlled by systemmd:

systemctl start ssh.service (you don’t need the .service)
systemctl restart ssh

systemctl can also be used to enable the service to start at boot:
systemctl enable ctl

systemctl status ssh tells you the status of the service
systemclt list-units lists all the active units systemmd knows about

update-rc.d

update-rc.d ssh enable

ssh will now start with linux

rcconf

rcconf is a configuration tools with a UI designed to make managing services easier.

Filed Under: Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About Me

I’m currently a systems admin / consultant at a IT firm who looks after the computer systems of small businesses in the UK. IT security is only a part of that job. However I’ve always enjoyed breaking into, getting around, subverting and otherwise hacking things, systems and ideas. In tackling some low-level IT security tasks I reignited my interest in the field and this blog charts my progress in the world of Computer Security, legal Hacking, Penetration Testing, Infosec – whatever you want to call it. As a Windows guy I’m learning about Linux, shell-scripting, python and all the other skills needed in this field.

Tags

Apache Boot-to-Root CTF curl dib Dirbuster FreeBSD Hack The Box Linux mysql NFS Penetration Testing PHP RCE shell VulnHub Wordpress

Categories

© 2023 · NeilSec;