System/Kernel


notch@blocky:~$ file /bin/bash ; uname -a ; cat /etc/*release
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=04eca96c5bf3e9a300952a29ef3218f00487d37b, stripped
linux blocky 4.4.0-62-generic #83-ubuntu smp wed jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
home_url="http://www.ubuntu.com/"
support_url="http://help.ubuntu.com/"
bug_report_url="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Ubuntu 16.04.2 LTS (Xenial Xerus) 4.4.0-62-generic x86_64

Networks


notch@Blocky:~$ arp -a
? (10.10.10.2) at 00:50:56:b9:9d:31 [ether] on ens160
 
notch@Blocky:~$ netstat -antup4
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -               
tcp        0    604 10.10.10.37:22          10.10.14.17:44090       ESTABLISHED -               

127.0.0.1:3306

Users & Groups


notch@blocky:~$ 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-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
syslog:x:104:108::/home/syslog:/bin/false
_apt:x:105:65534::/nonexistent:/bin/false
lxd:x:106:65534::/var/lib/lxd/:/bin/false
messagebus:x:107:111::/var/run/dbus:/bin/false
uuidd:x:108:112::/run/uuidd:/bin/false
dnsmasq:x:109:65534:dnsmasq,,,:/var/lib/misc:/bin/false
notch:x:1000:1000:notch,,,:/home/notch:/bin/bash
mysql:x:110:117:MySQL Server,,,:/nonexistent:/bin/false
proftpd:x:111:65534::/run/proftpd:/bin/false
ftp:x:112:65534::/srv/ftp:/bin/false
sshd:x:113:65534::/var/run/sshd:/usr/sbin/nologin
total 12
drwxr-xr-x  3 root  root  4096 Jul  2  2017 ./
drwxr-xr-x 23 root  root  4096 Jun  2  2022 ../
drwxr-xr-x  5 notch notch 4096 Jul  8  2022 notch/
notch@blocky:~$ 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-timesync) gid=102(systemd-timesync) groups=102(systemd-timesync)
uid=101(systemd-network) gid=103(systemd-network) groups=103(systemd-network)
uid=102(systemd-resolve) gid=104(systemd-resolve) groups=104(systemd-resolve)
uid=103(systemd-bus-proxy) gid=105(systemd-bus-proxy) groups=105(systemd-bus-proxy)
uid=104(syslog) gid=108(syslog) groups=108(syslog),4(adm)
uid=105(_apt) gid=65534(nogroup) groups=65534(nogroup)
uid=106(lxd) gid=65534(nogroup) groups=65534(nogroup)
uid=107(messagebus) gid=111(messagebus) groups=111(messagebus)
uid=108(uuidd) gid=112(uuidd) groups=112(uuidd)
uid=109(dnsmasq) gid=65534(nogroup) groups=65534(nogroup)
uid=1000(notch) gid=1000(notch) groups=1000(notch),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),115(lpadmin),116(sambashare)
uid=110(mysql) gid=117(mysql) groups=117(mysql)
uid=111(proftpd) gid=65534(nogroup) groups=65534(nogroup)
uid=112(ftp) gid=65534(nogroup) groups=65534(nogroup)
uid=113(sshd) gid=65534(nogroup) groups=65534(nogroup)

uid=1000(notch) gid=1000(notch) groups=1000(notch),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),115(lpadmin),116(sambashare)

SUIDs


notch@Blocky:~$ find / -perm -04000 -ls -type f 2>/dev/null
     8188     40 -rwsr-xr-x   1 root     root        40128 May 16  2017 /bin/su
    35845     32 -rwsr-xr-x   1 root     root        30800 Jul 12  2016 /bin/fusermount
       94     40 -rwsr-xr-x   1 root     root        40152 Jun 14  2017 /bin/mount
       90     44 -rwsr-xr-x   1 root     root        44168 May  7  2014 /bin/ping
      129     28 -rwsr-xr-x   1 root     root        27608 Jun 14  2017 /bin/umount
       91     44 -rwsr-xr-x   1 root     root        44680 May  7  2014 /bin/ping6
    35442    140 -rwsr-xr-x   1 root     root       142032 Jan 28  2017 /bin/ntfs-3g
     7666     52 -rwsr-xr-x   1 root     root        49584 May 16  2017 /usr/bin/chfn
    39042     24 -rwsr-xr-x   1 root     root        23376 Jan 17  2016 /usr/bin/pkexec
     8603     36 -rwsr-xr-x   1 root     root        32944 May 16  2017 /usr/bin/newuidmap
     6380    136 -rwsr-xr-x   1 root     root       136808 May 29  2017 /usr/bin/sudo
     7664     76 -rwsr-xr-x   1 root     root        75304 May 16  2017 /usr/bin/gpasswd
     7702     56 -rwsr-xr-x   1 root     root        54256 May 16  2017 /usr/bin/passwd
    38356     52 -rwsr-sr-x   1 daemon   daemon      51464 Jan 14  2016 /usr/bin/at
     8604     36 -rwsr-xr-x   1 root     root        32944 May 16  2017 /usr/bin/newgidmap
     7620     40 -rwsr-xr-x   1 root     root        40432 May 16  2017 /usr/bin/chsh
     8187     40 -rwsr-xr-x   1 root     root        39904 May 16  2017 /usr/bin/newgrp
   145448    420 -rwsr-xr-x   1 root     root       428240 Mar 16  2017 /usr/lib/openssh/ssh-keysign
   145434     40 -rwsr-xr-x   1 root     root        38984 Jun 14  2017 /usr/lib/x86_64-linux-gnu/lxc/lxc-user-nic
   137821     44 -rwsr-xr--   1 root     messagebus    42992 Jan 12  2017 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
     8942    204 -rwsr-xr-x   1 root     root         208680 Apr 29  2017 /usr/lib/snapd/snap-confine
    39026     16 -rwsr-xr-x   1 root     root          14864 Jan 17  2016 /usr/lib/policykit-1/polkit-agent-helper-1
     7638     12 -rwsr-xr-x   1 root     root          10232 Mar 27  2017 /usr/lib/eject/dmcrypt-get-device

SGIDs


notch@blocky:~$ find / -perm -02000 -ls -type f 2>/dev/null
    15898      4 drwxrwsr-x   2 root     staff        4096 Apr 12  2016 /var/local
    15902      4 drwxrwsr-x   2 root     mail         4096 Feb 15  2017 /var/mail
   138641      4 drwxr-sr-x   2 man      root         4096 Jul 16  2017 /var/cache/man
     1584     36 -rwxr-sr-x   1 root     shadow      35600 Mar 16  2016 /sbin/unix_chkpwd
     1548     36 -rwxr-sr-x   1 root     shadow      35632 Mar 16  2016 /sbin/pam_extrausers_chkpwd
    41419      4 drwxrwsr-x   7 root     staff        4096 Jul  2  2017 /usr/local/share/sgml
    41423      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/sgml/misc
    41422      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/sgml/entities
    41421      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/sgml/stylesheet
    41424      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/sgml/dtd
    41420      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/sgml/declaration
    41621      4 drwxrwsr-x   6 root     staff        4096 Jul  2  2017 /usr/local/share/xml
    41626      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/xml/schema
    41623      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/xml/misc
    41625      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/xml/entities
    41624      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/xml/declaration
    47372      4 drwxrwsr-x   2 root     staff        4096 Jul  2  2017 /usr/local/share/fonts
     4595      4 drwxrwsr-x   3 root     staff        4096 Jul  2  2017 /usr/local/lib/python3.5
     4596      4 drwxrwsr-x   2 root     staff        4096 Feb 15  2017 /usr/local/lib/python3.5/dist-packages
    38460    428 -rwxr-sr-x   1 root     utmp       434216 Feb  7  2016 /usr/bin/screen
     8840    352 -rwxr-sr-x   1 root     ssh        358624 Mar 16  2017 /usr/bin/ssh-agent
    38356     52 -rwsr-sr-x   1 daemon   daemon      51464 Jan 14  2016 /usr/bin/at
     1632     36 -rwxr-sr-x   1 root     crontab     36080 Apr  5  2016 /usr/bin/crontab
    35626     16 -rwxr-sr-x   1 root     tty         14752 Mar  1  2016 /usr/bin/bsd-write
     5628     28 -rwxr-sr-x   1 root     tty         27368 Jun 14  2017 /usr/bin/wall
    37886     40 -rwxr-sr-x   1 root     mlocate     39520 Nov 18  2014 /usr/bin/mlocate
     7281     64 -rwxr-sr-x   1 root     shadow      62336 May 16  2017 /usr/bin/chage
     7617     24 -rwxr-sr-x   1 root     shadow      22768 May 16  2017 /usr/bin/expiry
   141439     12 -rwxr-sr-x   1 root     utmp        10232 Mar 11  2016 /usr/lib/x86_64-linux-gnu/utempter/utempter
      350      0 drwxr-sr-x   3 root     systemd-journal       60 sep 19 00:43 /run/log/journal
      351      0 drwxr-s---   2 root     systemd-journal       80 sep 19 00:43 /run/log/journal/b927797b27465e4b27172dd35958fd55

Processes


notch@Blocky:~$ ps -auxwww
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root          1  0.0  0.2  37828  5688 ?        Ss   00:42   0:02 /sbin/init
root        489  0.0  0.1  29628  3032 ?        Ss   00:43   0:00 /lib/systemd/systemd-journald
root        537  0.0  0.0 102972  1568 ?        Ss   00:43   0:00 /sbin/lvmetad -f
root        551  0.0  0.2  44784  4068 ?        Ss   00:43   0:00 /lib/systemd/systemd-udevd
systemd+    875  0.0  0.1 100328  2400 ?        Ssl  00:43   0:00 /lib/systemd/systemd-timesyncd
root       1117  0.0  0.3 621800  6112 ?        Ssl  00:43   0:00 /usr/bin/lxcfs /var/lib/lxcfs/
syslog     1118  0.0  0.1 256400  2968 ?        Ssl  00:43   0:00 /usr/sbin/rsyslogd -n
root       1120  0.0  0.4 192264  9844 ?        Ssl  00:43   0:03 /usr/bin/vmtoolsd
root       1128  0.0  0.1  28552  3064 ?        Ss   00:43   0:00 /lib/systemd/systemd-logind
root       1134  0.0  0.3 275876  6152 ?        Ssl  00:43   0:00 /usr/lib/accountsservice/accounts-daemon
message+   1135  0.0  0.1  42904  3592 ?        Ss   00:43   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       1154  0.0  0.1  29012  2676 ?        Ss   00:43   0:00 /usr/sbin/cron -f
daemon     1155  0.0  0.0  26048  1968 ?        Ss   00:43   0:00 /usr/sbin/atd -f
root       1161  0.0  0.0   4404  1224 ?        Ss   00:43   0:00 /usr/sbin/acpid
root       1168  0.0  1.0 275348 21432 ?        Ssl  00:43   0:00 /usr/lib/snapd/snapd
root       1197  0.0  0.2 277184  5824 ?        Ssl  00:43   0:00 /usr/lib/policykit-1/polkitd --no-debug
root       1199  0.0  0.0  13380   152 ?        Ss   00:43   0:00 /sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog
notch      1211  0.0  0.1  27456  2336 ?        Ss   00:43   0:00 SCREEN -dmS blockycraft java -Xms500M -Xmx500M -jar ./sponge.jar nogui
notch      1214  2.8 29.1 2496692 592428 pts/0  Ssl+ 00:43   2:14 java -Xms500M -Xmx500M -jar ./sponge.jar nogui
root       1338  0.0  0.2  65524  5904 ?        Ss   00:43   0:00 /usr/sbin/sshd -D
root       1365  0.0  0.0   5228   120 ?        Ss   00:43   0:00 /sbin/iscsid
root       1366  0.0  0.1   5728  3516 ?        S<Ls 00:43   0:00 /sbin/iscsid
mysql      1417  2.7  8.4 1117044 171208 ?      Ssl  00:43   2:14 /usr/sbin/mysqld
root       1458  0.0  0.0  15944  1584 tty1     Ss+  00:43   0:00 /sbin/agetty --noclear tty1 linux
root       1472  0.0  1.4 286020 28456 ?        Ss   00:43   0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data   1481  0.0  0.3 286020  7172 ?        S    00:43   0:00 php-fpm: pool www
www-data   1482  0.0  0.3 286020  7172 ?        S    00:43   0:00 php-fpm: pool www
root       1483  0.0  1.0 327732 22256 ?        Ss   00:43   0:01 /usr/sbin/apache2 -k start
proftpd    1486  0.0  0.2 119648  4296 ?        Ss   00:43   0:00 proftpd: (accepting connections)
www-data   2149  1.8  1.2 330680 24760 ?        S    01:26   0:40 /usr/sbin/apache2 -k start
notch      2355  0.0  0.2  45252  4516 ?        Ss   01:48   0:00 /lib/systemd/systemd --user
notch      2358  0.0  0.0  61280  1892 ?        S    01:48   0:00 (sd-pam)
root       2363  0.0  0.3  95408  6944 ?        Ss   01:49   0:00 sshd: notch [priv]
notch      2435  0.0  0.2  95408  4252 ?        S    01:49   0:00 sshd: notch@pts/1
notch      2438  0.0  0.2  22680  5184 pts/1    Ss   01:49   0:00 -bash
notch      2525  0.0  0.1  37368  3332 pts/1    R+   02:02   0:00 ps -auxwww

/usr/sbin/cron -f /usr/lib/policykit-1/polkitd --no-debug /sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog SCREEN -dmS blockycraft java -Xms500M -Xmx500M -jar ./sponge.jar nogui java -Xms500M -Xmx500M -jar ./sponge.jar nogui /usr/sbin/mysqld

Cron & Systemd


notch@blocky:~$ crontab -l ; cat /etc/crontab ; systemctl list-timers
# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
 
@reboot cd /home/notch/minecraft && ./start.sh
# /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
 
# m h dom mon dow user	command
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       UNIT                         ACTIVATES
tue 2023-09-19 05:45:20 CDT  3h 42min left Tue 2023-09-19 00:43:03 CDT  1h 20min ago snapd.refresh.timer          snapd.refresh.service
tue 2023-09-19 16:13:24 CDT  14h left      Tue 2023-09-19 00:43:03 CDT  1h 20min ago apt-daily.timer              apt-daily.service
wed 2023-09-20 00:57:57 CDT  22h left      Tue 2023-09-19 00:57:57 CDT  1h 5min ago  systemd-tmpfiles-clean.timer systemd-tmpfiles-clean
 
3 timers listed.
Pass --all to see loaded but inactive timers, too.
lines 1-7/7 (END)

@reboot cd /home/notch/minecraft && ./start.sh

Sudo Version


notch@Blocky:~$ sudo --version
Sudo version 1.8.16
Sudoers policy plugin version 1.8.16
Sudoers file grammar version 45
Sudoers I/O plugin version 1.8.16

Sudo version 1.8.16

Glibc Version


notch@blocky:~$ ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu9) 2.23
Copyright (C) 2016 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.23-0ubuntu9) 2.23