System/Kernel


shirohige@instant:~$ file /bin/bash ; uname -a ; cat /etc/*release
-bash: file: command not found
Linux instant 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Ubuntu 24.04.1 LTS (Noble Numbat) 6.8.0-45-generic

Networks


shirohige@instant:~$ ip route ; arp -a
default via 10.129.0.1 dev eth0
10.129.0.0/16 dev eth0 proto kernel scope link src 10.129.210.105
? (10.129.0.1) at 00:50:56:94:39:11 [ether] on eth0
 
shirohige@instant:~$ 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:8808          0.0.0.0:*               LISTEN      1336/python3
tcp        0      0 127.0.0.1:8888          0.0.0.0:*               LISTEN      1331/python3
tcp        0      0 127.0.0.54:53           0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -
tcp        0      1 10.129.210.105:43266    8.8.8.8:53              SYN_SENT    -
udp        0      0 10.129.210.105:34762    8.8.8.8:53              ESTABLISHED -
udp        0      0 127.0.0.54:53           0.0.0.0:*                           -
udp        0      0 127.0.0.53:53           0.0.0.0:*                           -
udp        0      0 0.0.0.0:68              0.0.0.0:*                           -
udp        0      0 10.129.210.105:39144    8.8.8.8:53              ESTABLISHED -
udp        0      0 127.0.0.1:49847         127.0.0.53:53           ESTABLISHED -

127.0.0.1:8808

Users & Groups


shirohige@instant:~$ 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:/run/ircd:/usr/sbin/nologin
_apt:x:42:65534::/nonexistent:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
systemd-timesync:x:997:997:systemd Time Synchronization:/:/usr/sbin/nologin
dhcpcd:x:100:65534:DHCP Client Daemon,,,:/usr/lib/dhcpcd:/bin/false
messagebus:x:101:102::/nonexistent:/usr/sbin/nologin
systemd-resolve:x:992:992:systemd Resolver:/:/usr/sbin/nologin
pollinate:x:102:1::/var/cache/pollinate:/bin/false
polkitd:x:991:991:User for polkitd:/:/usr/sbin/nologin
usbmux:x:103:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin
sshd:x:104:65534::/run/sshd:/usr/sbin/nologin
shirohige:x:1001:1002:White Beard:/home/shirohige:/bin/bash
_laurel:x:999:990::/var/log/laurel:/bin/false
total 12
drwxr-xr-x  3 root      root      4096 Oct  4 15:22 ./
drwxr-xr-x 23 root      root      4096 Oct  4 15:26 ../
drwxr-xr-x  7 shirohige shirohige 4096 Oct  4 15:22 shirohige/
shirohige@instant:~$ 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=42(_apt) gid=65534(nogroup) groups=65534(nogroup)
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
uid=998(systemd-network) gid=998(systemd-network) groups=998(systemd-network)
uid=997(systemd-timesync) gid=997(systemd-timesync) groups=997(systemd-timesync)
uid=100(dhcpcd) gid=65534(nogroup) groups=65534(nogroup)
uid=101(messagebus) gid=102(messagebus) groups=102(messagebus)
uid=992(systemd-resolve) gid=992(systemd-resolve) groups=992(systemd-resolve)
uid=102(pollinate) gid=1(daemon) groups=1(daemon)
uid=991(polkitd) gid=991(polkitd) groups=991(polkitd)
uid=103(usbmux) gid=46(plugdev) groups=46(plugdev)
uid=104(sshd) gid=65534(nogroup) groups=65534(nogroup)
uid=1001(shirohige) gid=1002(shirohige) groups=1002(shirohige),1001(development)
uid=999(_laurel) gid=990(_laurel) groups=990(_laurel)

uid=1001(shirohige) gid=1002(shirohige) groups=1002(shirohige),1001(development)

SUIDs


shirohige@instant:~$ find / -perm -04000 -ls -type f 2>/dev/null
      761    272 -rwsr-xr-x   1 root     root       277936 Apr  8  2024 /usr/bin/sudo
     6353     52 -rwsr-xr-x   1 root     root        51584 Aug  9 02:33 /usr/bin/mount
     6354     40 -rwsr-xr-x   1 root     root        39296 Aug  9 02:33 /usr/bin/umount
      412     40 -rwsr-xr-x   1 root     root        39296 Apr  8  2024 /usr/bin/fusermount3
    11490     56 -rwsr-xr-x   1 root     root        55680 Aug  9 02:33 /usr/bin/su
      537     40 -rwsr-xr-x   1 root     root        40664 Apr  9  2024 /usr/bin/newgrp
      323     44 -rwsr-xr-x   1 root     root        44760 Apr  9  2024 /usr/bin/chsh
      317     72 -rwsr-xr-x   1 root     root        72792 Apr  9  2024 /usr/bin/chfn
      553     64 -rwsr-xr-x   1 root     root        64152 Apr  9  2024 /usr/bin/passwd
      424     76 -rwsr-xr-x   1 root     root        76248 Apr  9  2024 /usr/bin/gpasswd
     9635    156 -rwsr-xr-x   1 root     root       159016 Aug 20 22:39 /usr/lib/snapd/snap-confine
     1093     20 -rwsr-xr-x   1 root     root        18736 Apr  3  2024 /usr/lib/polkit-1/polkit-agent-helper-1
    11960    336 -rwsr-xr-x   1 root     root       342632 Aug  9 02:33 /usr/lib/openssh/ssh-keysign
    18327     36 -rwsr-xr--   1 root     messagebus    34960 Aug  9 02:33 /usr/lib/dbus-1.0/dbus-daemon-launch-helper

SGIDs


shirohige@instant:~$ find / -perm -02000 -ls -type f 2>/dev/null
     6351     32 -rwxr-sr-x   1 root     shadow      31040 May  2 22:20 /usr/sbin/unix_chkpwd
     6338     28 -rwxr-sr-x   1 root     shadow      26944 May  2 22:20 /usr/sbin/pam_extrausers_chkpwd
    56235     40 -rwxr-sr-x   1 root     crontab     39664 Mar 31  2024 /usr/bin/crontab
      313     72 -rwxr-sr-x   1 root     shadow      72184 Apr  9  2024 /usr/bin/chage
     6999    304 -rwxr-sr-x   1 root     _ssh       309688 Aug  9 02:33 /usr/bin/ssh-agent
      397     28 -rwxr-sr-x   1 root     shadow      27152 Apr  9  2024 /usr/bin/expiry
   262179      4 drwxrwsr-x   2 root     staff        4096 Aug  8 17:49 /usr/local/share/fonts
    15975      4 drwxrwsr-x   2 root     staff        4096 Apr 22 13:08 /var/local
   131157      4 drwxr-sr-x   3 root     systemd-journal     4096 Oct  4 15:22 /var/log/journal
    55836     12 drwxr-sr-x   2 root     systemd-journal    12288 Oct 10 10:41 /var/log/journal/6defbb9a597042b3ac33bae642a8430b
    15973      4 drwxrwsrwt   2 root     root                4096 Apr 23 09:40 /var/crash
    15977      4 drwxrwsr-x   2 root     mail                4096 Apr 23 09:37 /var/mail
      499      0 drwxr-sr-x   2 root     systemd-journal       40 Oct 10 10:40 /run/log/journal

Processes


shirohige@instant:~$ ps -auxwww
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.6  21784 12808 ?        Ss   Oct10   0:06 /sbin/init
root         411  0.0  1.1  74948 22880 ?        S<s  Oct10   0:13 /usr/lib/systemd/systemd-journald
root         444  0.0  1.3 288984 27136 ?        SLsl Oct10   0:22 /sbin/multipathd -d -s
root         490  0.0  0.4  29840  8448 ?        Ss   Oct10   0:00 /usr/lib/systemd/systemd-udevd
systemd+     531  0.0  0.6  21812 13056 ?        Ss   Oct10   0:19 /usr/lib/systemd/systemd-resolved
systemd+     535  0.0  0.3  91020  7808 ?        Ssl  Oct10   0:14 /usr/lib/systemd/systemd-timesyncd
root         540  0.0  0.1  85824  2756 ?        R<sl Oct10   0:09 /sbin/auditd
_laurel      544  0.0  0.3  10112  6528 ?        R<   Oct10   0:17 /usr/local/sbin/laurel --config /etc/laurel/config.toml
root         692  0.0  0.5  50892 11776 ?        Ss   Oct10   0:00 /usr/bin/VGAuthService
root         776  0.0  0.1   4068  3200 ?        Ss   Oct10   0:00 dhclient -1 -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
message+     814  0.0  0.2   9552  4992 ?        Ss   Oct10   0:00 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root         829  0.0  0.4  18160  8704 ?        Ss   Oct10   0:00 /usr/lib/systemd/systemd-logind
shirohi+    1331  0.0  2.7 137412 55032 ?        Ss   Oct10   0:38 /home/shirohige/projects/mywallet/myenv/bin/python3 app.py
root        1335  0.0  0.1   4236  2560 ?        Ss   Oct10   0:00 /usr/sbin/cron -f -P
shirohi+    1336  0.0  3.0 289244 60356 ?        Ss   Oct10   0:38 /home/shirohige/projects/mywallet/myenv/bin/python3 serve.py
root        1361  0.0  0.0   3116  1920 tty1     Ss+  Oct10   0:00 /sbin/agetty -o -p -- \u --noclear - linux
root        1364  0.0  0.2   7216  5212 ?        Ss   Oct10   0:18 /usr/sbin/apache2 -k start
root        5628  0.0  0.4  12020  8064 ?        Ss   19:01   0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
www-data    5707  0.0  0.5 1214788 9916 ?        Sl   19:15   0:01 /usr/sbin/apache2 -k start
www-data    5735  0.0  0.5 1215044 11624 ?       Sl   19:15   0:01 /usr/sbin/apache2 -k start
www-data    5763  0.0  0.5 1214860 10532 ?       Sl   19:15   0:00 /usr/sbin/apache2 -k start
root        6057  0.0  0.4  14740  8564 ?        Ss   21:14   0:00 sshd: shirohige [priv]
shirohi+    6064  0.0  0.5  20276 11264 ?        Ss   21:15   0:00 /usr/lib/systemd/systemd --user
shirohi+    6067  0.0  0.1  21148  3520 ?        S    21:15   0:00 (sd-pam)
shirohi+    6096  0.0  0.3  14964  6820 ?        S    21:15   0:00 sshd: shirohige@pts/0
shirohi+    6097  0.0  0.2   5116  4224 pts/0    Ss   21:15   0:00 -bash
shirohi+    6212  3.1  0.5 705804 11504 pts/0    Sl+  21:28   0:07 ./pspy64
root        6252  0.0  0.4  14740  7924 ?        Ss   21:30   0:00 sshd: shirohige [priv]
shirohi+    6273  0.0  0.2   5016  4224 pts/2    Ss   21:30   0:00 -bash
shirohi+    6315  300  0.2   9764  5120 pts/2    R+   21:32   0:00 ps -auxwww

/usr/local/sbin/laurel --config /etc/laurel/config.toml /home/shirohige/projects/mywallet/myenv/bin/python3 app.py /home/shirohige/projects/mywallet/myenv/bin/python3 serve.py

Cron & Systemd


shirohige@instant:~$ crontab -l ; cat /etc/crontab ; systemctl list-timers
no crontab for shirohige
# /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
# You can also override PATH, but by default, newer versions inherit it from the environment
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/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 UNIT                         ACTIVATES
Sun 2024-10-13 00:00:00 UTC 2h 25min Sat 2024-10-12 00:00:06 UTC    21h ago dpkg-db-backup.timer         dpkg-db-backup.
service
Sun 2024-10-13 00:57:06 UTC 3h 22min Sat 2024-10-12 08:00:48 UTC    13h ago apt-daily.timer              apt-daily.servi
ce
Sun 2024-10-13 01:00:23 UTC 3h 25min Sat 2024-10-12 12:53:48 UTC     8h ago motd-news.timer              motd-news.servi
ce
Sun 2024-10-13 03:10:08 UTC 5h 35min Tue 2024-10-08 07:47:12 UTC          - e2scrub_all.timer            e2scrub_all.ser
vice
Sun 2024-10-13 06:03:34 UTC       8h Sat 2024-10-12 06:34:30 UTC    14h ago apt-daily-upgrade.timer      apt-daily-upgra
de.service
Sun 2024-10-13 10:56:07 UTC      13h Sat 2024-10-12 10:56:06 UTC    10h ago systemd-tmpfiles-clean.timer systemd-tmpfile
s-clean.service
Mon 2024-10-14 00:20:44 UTC 1 day 2h Thu 2024-10-10 11:46:30 UTC 2 days ago fstrim.timer                 fstrim.service
 
7 timers listed.
Pass --all to see loaded but inactive timers, too.

Sudo Version


shirohige@instant:~$ sudo --version
Sudo version 1.9.15p5
Sudoers policy plugin version 1.9.15p5
Sudoers file grammar version 50
Sudoers I/O plugin version 1.9.15p5
Sudoers audit plugin version 1.9.15p5

Sudo version 1.9.15p5

Glibc Version


shirohige@instant:~$ ldd --version
ldd (Ubuntu GLIBC 2.39-0ubuntu8.3) 2.39
Copyright (C) 2024 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.39-0ubuntu8.3) 2.39