What about service (sd

Support for security such as Firewalls and securing linux
Post Reply
lukeluke777
Posts: 2
Joined: 2021/02/09 14:43:17

What about service (sd

Post by lukeluke777 » 2021/02/09 14:51:25

Hello,
I have a centos 8 host. And my provider show me all services enabled on my host.
One of them has this label which seems a "brute man smiling face",
the service label is

(sd

Do you know what could this service be?
Something strandard?
Something about SD?

tnx

User avatar
jlehtone
Posts: 3335
Joined: 2007/12/11 08:17:33
Location: Finland

Re: What about service (sd

Post by jlehtone » 2021/02/09 17:05:03

What if you list units yourself:

Code: Select all

systemctl list-unit-files

lukeluke777
Posts: 2
Joined: 2021/02/09 14:43:17

Re: What about service (sd

Post by lukeluke777 » 2021/02/09 19:32:17

jlehtone wrote:
2021/02/09 17:05:03
What if you list units yourself:

Code: Select all

systemctl list-unit-files
this is, not found (sd in the following list.
but if I watch my dashboard I see the first service...
>>>>>>>>>>>>>>>>>
service: (sd
status: Running
autostart:off
>>>>>>>>>>>>>>>>>

UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount disabled
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
session-305519.scope transient
arp-ethers.service disabled
autovt@.service indirect
console-getty.service enabled-runtime
container-getty@.service static
crond.service enabled
dbus-org.fedoraproject.FirewallD1.service enabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.portable1.service static
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dnf-automatic-download.service static
dnf-automatic-install.service static
dnf-automatic-notifyonly.service static
dnf-automatic.service static
dnf-makecache.service static
dracut-cmdline.service static
dracut-initqueue.service static
dracut-mount.service static
dracut-pre-mount.service static
dracut-pre-pivot.service static
dracut-pre-trigger.service static
dracut-pre-udev.service static
dracut-shutdown.service static
ebtables.service disabled
emergency.service static
fetchmail.service disabled
firewalld.service enabled
fstrim.service static
getty@.service indirect
halt-local.service static
htcacheclean.service static
httpd-init.service static
httpd.service enabled
httpd@.service disabled
import-state.service enabled
initrd-cleanup.service static
initrd-parse-etc.service static
initrd-switch-root.service static
initrd-udevadm-cleanup-db.service static
ip6tables.service disabled
iptables.service disabled
kestrel-pichaos.service enabled
kmod-static-nodes.service static
ldconfig.service static
loadmodules.service enabled
man-db-cache-update.service static
messagebus.service static
mlocate-updatedb.service static
mysqld.service enabled
mysqld@.service disabled
named-setup-rndc.service static
named.service disabled
network.service generated
nftables.service disabled
nis-domainname.service disabled
nmb.service disabled
nscd.service disabled
php-fpm.service disabled
quotaon.service static
rc-local.service static
rdisc.service disabled
rescue.service static
rpcbind.service disabled
rsyslog.service enabled
saslauthd.service enabled
selinux-autorelabel-mark.service enabled
selinux-autorelabel.service static
sendmail.service enabled
serial-getty@.service disabled
sm-client.service enabled
smb.service disabled
snapd.autoimport.service disabled
snapd.failure.service static
snapd.seeded.service disabled
snapd.service disabled
snmpd.service disabled
snmptrapd.service disabled
sshd-keygen@.service disabled
sshd.service enabled
sshd@.service static
stunnel.service disabled
stunnel@.service disabled
supervisord.service enabled
syslog.service enabled
system-update-cleanup.service static
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-backlight@.service static
systemd-binfmt.service static
systemd-coredump@.service static
systemd-exit.service static
systemd-firstboot.service static
systemd-fsck-root.service static
systemd-fsck@.service static
systemd-halt.service static
systemd-hibernate-resume@.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hwdb-update.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-catalog-update.service static
systemd-journal-flush.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-machine-id-commit.service static
systemd-modules-load.service static
systemd-portabled.service static
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed.service static
systemd-reboot.service static
systemd-remount-fs.service static
systemd-resolved.service disabled
systemd-rfkill.service static
systemd-suspend-then-hibernate.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-sysusers.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup-dev.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-done.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service masked
systemd-volatile-root.service static
tomcat.service enabled
user-runtime-dir@.service static
user@.service static
vzfifo.service enabled
vzreboot.service static
xinetd.service enabled
user.slice static
dbus.socket static
httpd.socket disabled
nscd.socket disabled
rpcbind.socket enabled
snapd.socket enabled
sshd.socket disabled
syslog.socket static
systemd-coredump.socket static
systemd-initctl.socket static
systemd-journald-audit.socket static
systemd-journald-dev-log.socket static
systemd-journald.socket static
systemd-rfkill.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
basic.target static
bluetooth.target static
boot-complete.target static
cryptsetup-pre.target static
cryptsetup.target static
ctrl-alt-del.target disabled
default.target indirect
emergency.target static
exit.target disabled
final.target static
getty-pre.target static
getty.target static
graphical.target static
halt.target disabled
hibernate.target static
hybrid-sleep.target static
initrd-fs.target static
initrd-root-device.target static
initrd-root-fs.target static
initrd-switch-root.target static
initrd.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
multi-user.target indirect
network-online.target static
network-pre.target static
network.target static
nss-lookup.target static
nss-user-lookup.target static
paths.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-cryptsetup.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target static
rpcbind.target static
runlevel0.target disabled
runlevel1.target static
runlevel2.target indirect
runlevel3.target indirect
runlevel4.target indirect
runlevel5.target static
runlevel6.target disabled
selinux-autorelabel.target static
shutdown.target static
sigpwr.target static
sleep.target static
slices.target static
smartcard.target static
sockets.target static
sound.target static
sshd-keygen.target static
suspend-then-hibernate.target static
suspend.target static
swap.target static
sysinit.target static
system-update-pre.target static
system-update.target static
time-sync.target static
timers.target static
umount.target static
dnf-automatic-download.timer disabled
dnf-automatic-install.timer disabled
dnf-automatic-notifyonly.timer disabled
dnf-automatic.timer enabled
dnf-makecache.timer enabled
fstrim.timer disabled
mlocate-updatedb.timer disabled
systemd-tmpfiles-clean.timer static

MartinR
Posts: 650
Joined: 2015/05/11 07:53:27
Location: UK

Re: What about service (sd

Post by MartinR » 2021/02/09 22:23:24

Trying to wade through the Slough of Despond that is systemd I use the following code to find things. Anyone can feel free to copy and use it if it would be helpful:

Code: Select all

#!/bin/bash
#
#	wtf
#
#	Find out what a unit is called and where it is.
#
#	Typical use:
#	# wtf torque
#	/usr/lib/systemd/system/pbs_mom	.service
#	/usr/lib/systemd/system/pbs_sched	.service
#	/usr/lib/systemd/system/pbs_server	.service
#
#	Walk all relevant trees searching within the files for all occurances
#	of the desired string.  Pass the name of all files including the
#	string on to AWK for formatting.
#
find /etc/systemd /usr/lib/systemd /run/systemd /lib/systemd -type f -exec grep -i "$1" {} + \
	| awk ' {
#
#		Strip off everything to the right of the last colon, then look
#		for the last full stop.  The type is everything to the right
#		of that (and remove any further colons), the path is that to
#		the left.  Print the results tab-separated.
#
		sub( ":[^:]*$", "" )
		match( $0, ".[^.]*$" )
		type = substr( $0, RSTART )
		sub( ":.*$", "", type )
		path = substr( $0, 1, RSTART-1 )
		printf( "%s\t%s\n", path, type)
	} ' \
	| sort -u
#
#	Sort and remove duplicates.

Post Reply

Return to “CentOS 8 - Security Support”