Delete accounts and control services

3.0 Hardening the Server
  • Eliminate low hanging fruits:
  • Remove un-needed accounts, services and software
  • Kepp up to date with updates
  • Choose strong passwords
  • Disable direct root login
3.1 Deleting accounts and controlling services





To delete service completely, issue following commands:

# systemctl stop <servicename>
# systemctl disable <servicename>

Before removing something, we need to check if it will break something. Does it have dependencies?

# rpm -q --whatrequires <servicename> (To check dependencies)
# rpm -qa | grep <servicename> (To grep real name of service)
# rpm --erase <servicename> (To erase the service entirely)