System/Kernel
openfire@openfire:/$ uname -a ; cat /etc/*release
Linux openfire 5.4.0-187-generic #207-Ubuntu SMP Mon Jun 10 08:16:10 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
5.4.0-187-generic
x86_64
Ubuntu 20.04.6 LTS (Focal Fossa)
Networks
openfire@openfire:/$ ip route ; arp -a
default via 192.168.201.254 dev ens160 proto static
192.168.201.0/24 dev ens160 proto kernel scope link src 192.168.201.96
_gateway (192.168.201.254) at 00:50:56:9e:df:ab [ether] on ens160
openfire@openfire:/$ netstat -antup | grep LIST
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp6 0 0 :::5262 :::* LISTEN 1032/java
tcp6 0 0 :::5263 :::* LISTEN 1032/java
tcp6 0 0 :::7443 :::* LISTEN 1032/java
tcp6 0 0 :::5269 :::* LISTEN 1032/java
tcp6 0 0 :::5270 :::* LISTEN 1032/java
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::5275 :::* LISTEN 1032/java
tcp6 0 0 :::5276 :::* LISTEN 1032/java
tcp6 0 0 :::7070 :::* LISTEN 1032/java
tcp6 0 0 :::7777 :::* LISTEN 1032/java
tcp6 0 0 :::9090 :::* LISTEN 1032/java
tcp6 0 0 :::9091 :::* LISTEN 1032/java
tcp6 0 0 :::5222 :::* LISTEN 1032/java
tcp6 0 0 :::5223 :::* LISTEN 1032/java
Users & Groups
openfire@openfire:/$ cat /etc/passwd ; ll /home
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-timesync:x:102:104:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:106::/nonexistent:/usr/sbin/nologin
syslog:x:104:110::/home/syslog:/usr/sbin/nologin
_apt:x:105:65534::/nonexistent:/usr/sbin/nologin
tss:x:106:111:TPM software stack,,,:/var/lib/tpm:/bin/false
uuidd:x:107:112::/run/uuidd:/usr/sbin/nologin
tcpdump:x:108:113::/nonexistent:/usr/sbin/nologin
landscape:x:109:115::/var/lib/landscape:/usr/sbin/nologin
pollinate:x:110:1::/var/cache/pollinate:/bin/false
systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
lxd:x:998:100::/var/snap/lxd/common/lxd:/bin/false
sshd:x:111:65534::/run/sshd:/usr/sbin/nologin
usbmux:x:112:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin
fwupd-refresh:x:113:117:fwupd-refresh user,,,:/run/systemd:/usr/sbin/nologin
openfire:x:114:118:Openfire XMPP server,,,:/home/openfire/:/usr/sbin/nologin
total 12K
4.0K drwxr-xr-x 2 root root 4.0K Jun 28 2024 openfire
4.0K drwxr-xr-x 3 root root 4.0K Jun 28 2024 .
4.0K drwxr-xr-x 20 root root 4.0K Jun 25 2024 ..
openfire@openfire:/$ cut -d: -f1 /etc/passwd | xargs -n1 id
uid=0(root) gid=0(root) groups=0(root)
uid=1(daemon) gid=1(daemon) groups=1(daemon)
uid=2(bin) gid=2(bin) groups=2(bin)
uid=3(sys) gid=3(sys) groups=3(sys)
uid=4(sync) gid=65534(nogroup) groups=65534(nogroup)
uid=5(games) gid=60(games) groups=60(games)
uid=6(man) gid=12(man) groups=12(man)
uid=7(lp) gid=7(lp) groups=7(lp)
uid=8(mail) gid=8(mail) groups=8(mail)
uid=9(news) gid=9(news) groups=9(news)
uid=10(uucp) gid=10(uucp) groups=10(uucp)
uid=13(proxy) gid=13(proxy) groups=13(proxy)
uid=33(www-data) gid=33(www-data) groups=33(www-data)
uid=34(backup) gid=34(backup) groups=34(backup)
uid=38(list) gid=38(list) groups=38(list)
uid=39(irc) gid=39(irc) groups=39(irc)
uid=41(gnats) gid=41(gnats) groups=41(gnats)
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
uid=100(systemd-network) gid=102(systemd-network) groups=102(systemd-network)
uid=101(systemd-resolve) gid=103(systemd-resolve) groups=103(systemd-resolve)
uid=102(systemd-timesync) gid=104(systemd-timesync) groups=104(systemd-timesync)
uid=103(messagebus) gid=106(messagebus) groups=106(messagebus)
uid=104(syslog) gid=110(syslog) groups=110(syslog),4(adm),5(tty)
uid=105(_apt) gid=65534(nogroup) groups=65534(nogroup)
uid=106(tss) gid=111(tss) groups=111(tss)
uid=107(uuidd) gid=112(uuidd) groups=112(uuidd)
uid=108(tcpdump) gid=113(tcpdump) groups=113(tcpdump)
uid=109(landscape) gid=115(landscape) groups=115(landscape)
uid=110(pollinate) gid=1(daemon) groups=1(daemon)
uid=999(systemd-coredump) gid=999(systemd-coredump) groups=999(systemd-coredump)
uid=998(lxd) gid=100(users) groups=100(users)
uid=111(sshd) gid=65534(nogroup) groups=65534(nogroup)
uid=112(usbmux) gid=46(plugdev) groups=46(plugdev)
uid=113(fwupd-refresh) gid=117(fwupd-refresh) groups=117(fwupd-refresh)
uid=114(openfire) gid=118(openfire) groups=118(openfire)
SUIDs
openfire@openfire:/$ find / -perm -04000 -ls -type f 2>/dev/null | grep -v '/snap'
788285 56 -rwsr-sr-x 1 daemon daemon 55560 Nov 12 2018 /usr/bin/at
792675 56 -rwsr-xr-x 1 root root 55528 Apr 9 2024 /usr/bin/mount
792388 52 -rwsr-xr-x 1 root root 53040 Feb 6 2024 /usr/bin/chsh
792694 164 -rwsr-xr-x 1 root root 166056 Apr 4 2023 /usr/bin/sudo
792391 88 -rwsr-xr-x 1 root root 88464 Feb 6 2024 /usr/bin/gpasswd
789327 44 -rwsr-xr-x 1 root root 44784 Feb 6 2024 /usr/bin/newgrp
792392 68 -rwsr-xr-x 1 root root 68208 Feb 6 2024 /usr/bin/passwd
790179 32 -rwsr-xr-x 1 root root 31032 Feb 21 2022 /usr/bin/pkexec
792387 84 -rwsr-xr-x 1 root root 85064 Feb 6 2024 /usr/bin/chfn
792682 40 -rwsr-xr-x 1 root root 39144 Apr 9 2024 /usr/bin/umount
793198 68 -rwsr-xr-x 1 root root 67816 Apr 9 2024 /usr/bin/su
788464 40 -rwsr-xr-x 1 root root 39144 Mar 7 2020 /usr/bin/fusermount
788617 52 -rwsr-xr-- 1 root messagebus 51344 Oct 25 2022 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
802862 468 -rwsr-xr-x 1 root root 477672 Jan 2 2024 /usr/lib/openssh/ssh-keysign
790181 24 -rwsr-xr-x 1 root root 22840 Feb 21 2022 /usr/lib/policykit-1/polkit-agent-helper-1
789169 16 -rwsr-xr-x 1 root root 14488 Jul 8 2019 /usr/lib/eject/dmcrypt-get-device
SGIDs
openfire@openfire:/$ find / -perm -02000 -ls -type f 2>/dev/null | grep -v '/snap'
788422 44 -rwxr-sr-x 1 root shadow 43168 Jan 10 2024 /usr/sbin/pam_extrausers_chkpwd
788476 44 -rwxr-sr-x 1 root shadow 43160 Jan 10 2024 /usr/sbin/unix_chkpwd
788285 56 -rwsr-sr-x 1 daemon daemon 55560 Nov 12 2018 /usr/bin/at
792390 32 -rwxr-sr-x 1 root shadow 31312 Feb 6 2024 /usr/bin/expiry
792386 84 -rwxr-sr-x 1 root shadow 84512 Feb 6 2024 /usr/bin/chage
788383 44 -rwxr-sr-x 1 root crontab 43720 Feb 13 2020 /usr/bin/crontab
802856 344 -rwxr-sr-x 1 root ssh 350504 Jan 2 2024 /usr/bin/ssh-agent
788298 16 -rwxr-sr-x 1 root tty 14488 Mar 30 2020 /usr/bin/bsd-write
950594 4 drwxrwsr-x 2 root staff 4096 Jun 28 2024 /usr/local/share/fonts
793253 4 drwxrwsr-x 3 root staff 4096 Jul 31 2020 /usr/local/lib/python3.8
793254 4 drwxrwsr-x 2 root staff 4096 Jul 31 2020 /usr/local/lib/python3.8/dist-packages
923290 16 -rwxr-sr-x 1 root utmp 14648 Sep 30 2019 /usr/lib/x86_64-linux-gnu/utempter/utempter
924565 4 drwxrwsr-x 2 root staff 4096 Apr 15 2020 /var/local
924567 4 drwxrwsr-x 2 root mail 4096 Jul 31 2020 /var/mail
1056682 4 drwxr-sr-x 3 root systemd-journal 4096 Jun 25 2024 /var/log/journal
1060066 4 drwxr-sr-x 2 root systemd-journal 4096 Apr 6 20:55 /var/log/journal/fad608a9e03c42b9b2129e8e18a7553f
353 0 drwxr-sr-x 2 root systemd-journal 40 Aug 5 2024 /run/log/journal
Capabilities
openfire@openfire:/$ getcap -r / 2>/dev/null
/usr/bin/mtr-packet = cap_net_raw+ep
/usr/bin/ping = cap_net_raw+ep
/usr/bin/traceroute6.iputils = cap_net_raw+ep
/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-ptp-helper = cap_net_bind_service,cap_net_admin+ep
/snap/core20/2318/usr/bin/ping = cap_net_raw+ep
Processes
openfire@openfire:/$ ps -auxwww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.3 169504 12892 ? Ss 20:52 0:01 /sbin/init maybe-ubiquity
root 497 0.0 0.4 52136 17608 ? S<s 20:53 0:00 /lib/systemd/systemd-journald
root 530 0.0 0.0 2488 572 ? S 20:53 0:00 bpfilter_umh
root 541 0.0 0.1 22636 6084 ? Ss 20:53 0:00 /lib/systemd/systemd-udevd
root 820 0.0 0.4 345880 18272 ? SLsl 20:53 0:00 /sbin/multipathd -d -s
systemd+ 859 0.0 0.1 164620 6116 ? Ssl 20:53 0:00 /lib/systemd/systemd-timesyncd
root 870 0.0 0.2 47548 10564 ? Ss 20:53 0:00 /usr/bin/VGAuthService
root 871 0.0 0.2 237820 8468 ? Ssl 20:53 0:00 /usr/bin/vmtoolsd
systemd+ 943 0.0 0.1 19180 7748 ? Ss 20:53 0:00 /lib/systemd/systemd-networkd
systemd+ 945 0.0 0.3 24688 12208 ? Ss 20:53 0:00 /lib/systemd/systemd-resolved
root 956 0.0 0.1 235556 7384 ? Ssl 20:53 0:00 /usr/lib/accountsservice/accounts-daemon
root 959 0.0 0.0 6816 2764 ? Ss 20:53 0:00 /usr/sbin/cron -f
message+ 960 0.0 0.1 7696 4804 ? Ss 20:53 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 970 0.0 0.0 81960 3688 ? Ssl 20:53 0:00 /usr/sbin/irqbalance --foreground
root 971 0.0 0.4 29648 18484 ? Ss 20:53 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root 973 0.0 0.1 232728 6832 ? Ssl 20:53 0:00 /usr/lib/policykit-1/polkitd --no-debug
syslog 979 0.0 0.1 224344 5620 ? Ssl 20:53 0:00 /usr/sbin/rsyslogd -n -iNONE
root 982 0.4 0.7 1393784 32048 ? Ssl 20:53 0:07 /usr/lib/snapd/snapd
root 988 0.0 0.1 17240 7412 ? Ss 20:53 0:00 /lib/systemd/systemd-logind
root 991 0.0 0.3 393268 12220 ? Ssl 20:53 0:00 /usr/lib/udisks2/udisksd
daemon 997 0.0 0.0 3796 2204 ? Ss 20:53 0:00 /usr/sbin/atd -f
root 1006 0.0 0.0 5828 1840 tty1 Ss+ 20:53 0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root 1019 0.0 0.2 315104 11396 ? Ssl 20:53 0:00 /usr/sbin/ModemManager
openfire 1032 1.7 6.8 3696256 274300 ? Sl 20:53 0:32 /bin/java -server -DopenfireHome=/usr/share/openfire -Dlog4j.configurationFile=/usr/share/openfire/lib/log4j2.xml -Dlog4j2.formatMsgNoLookups=true -Dopenfire.lib.dir=/usr/share/openfire/lib -classpath /usr/share/openfire/lib/startup.jar -jar /usr/share/openfire/lib/startup.jar
root 1038 0.0 0.1 12188 6972 ? Ss 20:53 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
root 1063 0.0 0.5 107920 20948 ? Ssl 20:53 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root 1443 0.0 0.8 389436 33260 ? Ssl 20:55 0:00 /usr/libexec/fwupd/fwupd
root 1461 0.0 0.2 314940 9212 ? Ssl 20:55 0:00 /usr/lib/upower/upowerd
openfire 3765 0.0 0.0 3332 2052 ? S 21:12 0:00 nc 192.168.45.249 9091
openfire 3774 0.0 0.0 3332 2052 ? S 21:12 0:00 nc 192.168.45.249 9999
openfire 3972 0.0 0.0 2608 596 ? S 21:18 0:00 /bin/sh
openfire 4049 0.0 0.2 15932 9396 ? R 21:21 0:00 python3 -c import pty; pty.spawn("/bin/bash")
openfire 4050 0.0 0.0 7436 3776 pts/0 Ss 21:21 0:00 /bin/bash
openfire 4192 0.0 0.0 9272 3436 pts/0 R+ 21:23 0:00 ps -auxwww
root 959 0.0 0.0 6816 2764 ? Ss 20:53 0:00 /usr/sbin/cron -f
openfire 1032 1.7 6.8 3696256 274300 ? Sl 20:53 0:32 /bin/java -server -DopenfireHome=/usr/share/openfire -Dlog4j.configurationFile=/usr/share/openfire/lib/log4j2.xml -Dlog4j2.formatMsgNoLookups=true -Dopenfire.lib.dir=/usr/share/openfire/lib -classpath /usr/share/openfire/lib/startup.jar -jar /usr/share/openfire/lib/startup.jar
Cron & Systemd
openfire@openfire:/$ crontab -l ; cat /etc/crontab ; systemctl list-timers
no crontab for openfire
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
NEXT LEFT LAST PASSED >
Mon 2025-04-07 00:00:00 UTC 2h 34min left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 00:00:00 UTC 2h 34min left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 00:00:00 UTC 2h 34min left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 06:15:01 UTC 8h left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 10:34:49 UTC 13h left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 10:44:06 UTC 13h left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 14:49:34 UTC 17h left Sun 2025-04-06 20:55:12 UTC 30min ago>
Mon 2025-04-07 21:08:06 UTC 23h left Sun 2025-04-06 21:08:06 UTC 17min ago>
Sun 2025-04-13 03:10:43 UTC 6 days left Sun 2025-04-06 20:55:12 UTC 30min ago>
9 timers listed.
Pass --all to see loaded but inactive timers, too.
Services
openfire@openfire:/$ systemctl list-units --state=running
UNIT LOAD ACTIVE SUB DESCRIPTION >
proc-sys-fs-binfmt_misc.automount loaded active running Arbitrary Executable >
init.scope loaded active running System and Service Ma>
accounts-daemon.service loaded active running Accounts Service >
atd.service loaded active running Deferred execution sc>
cron.service loaded active running Regular background pr>
dbus.service loaded active running D-Bus System Message >
fwupd.service loaded active running Firmware update daemo>
getty@tty1.service loaded active running Getty on tty1 >
irqbalance.service loaded active running irqbalance daemon >
ModemManager.service loaded active running Modem Manager >
multipathd.service loaded active running Device-Mapper Multipa>
networkd-dispatcher.service loaded active running Dispatcher daemon for>
open-vm-tools.service loaded active running Service for virtual m>
openfire.service loaded active running LSB: Start/stop openf>
polkit.service loaded active running Authorization Manager>
rsyslog.service loaded active running System Logging Servic>
snapd.service loaded active running Snap Daemon >
ssh.service loaded active running OpenBSD Secure Shell >
systemd-journald.service loaded active running Journal Service >
systemd-logind.service loaded active running Login Service >
systemd-networkd.service loaded active running Network Service >
systemd-resolved.service loaded active running Network Name Resoluti>
systemd-timesyncd.service loaded active running Network Time Synchron>
systemd-udevd.service loaded active running udev Kernel Device Ma>
udisks2.service loaded active running Disk Manager >
unattended-upgrades.service loaded active running Unattended Upgrades S>
upower.service loaded active running Daemon for power mana>
vgauth.service loaded active running Authentication servic>
dbus.socket loaded active running D-Bus System Message >
multipathd.socket loaded active running multipathd control so>
snapd.socket loaded active running Socket activation for>
syslog.socket loaded active running Syslog Socket >
systemd-journald-audit.socket loaded active running Journal Audit Socket >
systemd-journald-dev-log.socket loaded active running Journal Socket (/dev/>
systemd-journald.socket loaded active running Journal Socket >
systemd-networkd.socket loaded active running Network Service Netli>
systemd-udevd-control.socket loaded active running udev Control Socket >
systemd-udevd-kernel.socket loaded active running udev Kernel Socket >
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
38 loaded units listed.
openfire.service
Sudo Version
openfire@openfire:/$ sudo --version
Sudo version 1.8.31
Sudoers policy plugin version 1.8.31
Sudoers file grammar version 46
Sudoers I/O plugin version 1.8.31
Sudo version 1.8.31
Glibc Version
openfire@openfire:/$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.16) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
ldd (Ubuntu GLIBC 2.31-0ubuntu9.16) 2.31