System/Kernel


www-data@cronos:/var/www/admin$ 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]=0428e4834e687e231fa865562d32fbb64ce45577, stripped
linux cronos 4.4.0-72-generic #93-ubuntu smp fri mar 31 14:07:41 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

cronos 4.4.0-72-generic Ubuntu 16.04.2 LTS (Xenial Xerus) x86-64

Networks


www-data@cronos:/var/www/admin$ 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 10.10.10.13:53          0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      -               
tcp        0    297 10.10.10.13:58948       10.10.14.7:9999         ESTABLISHED 3476/nc         
udp        0      0 10.10.10.13:59814       10.10.10.2:53           ESTABLISHED -               
udp        0      0 10.10.10.13:40413       8.8.8.8:53              ESTABLISHED -               
udp        0      0 10.10.10.13:53          0.0.0.0:*                           -               
udp        0      0 127.0.0.1:53            0.0.0.0:*                           - 

127.0.0.1:3306 127.0.0.1:953

Users & Groups


www-data@cronos:/var/www/admin$ cat /etc/passwd ; ls -lasht /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:/bin/bash
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
mysql:x:107:111:MySQL Server,,,:/nonexistent:/bin/false
messagebus:x:108:112::/var/run/dbus:/bin/false
uuidd:x:109:113::/run/uuidd:/bin/false
dnsmasq:x:110:65534:dnsmasq,,,:/var/lib/misc:/bin/false
sshd:x:111:65534::/var/run/sshd:/usr/sbin/nologin
noulis:x:1000:1000:Noulis Panoulis,,,:/home/noulis:/bin/bash
bind:x:112:119::/var/cache/bind:/bin/false
total 12K
4.0k drwxr-xr-x  4 noulis noulis 4.0k may 10 14:51 noulis
4.0k drwxr-xr-x  3 root   root   4.0k may 10 14:51 .
4.0k drwxr-xr-x 23 root   root   4.0k may 10 14:51 ..
 

noulis

SUIDs


www-data@cronos:/var/www/admin$ find / -perm -04000 -ls -type f 2>/dev/null
    34568     44 -rwsr-xr-x   1 root     root        44168 May  7  2014 /bin/ping
    34603     28 -rwsr-xr-x   1 root     root        27608 Dec 16  2016 /bin/umount
    34554     40 -rwsr-xr-x   1 root     root        40152 Dec 16  2016 /bin/mount
    36064     32 -rwsr-xr-x   1 root     root        30800 Jul 12  2016 /bin/fusermount
    34585     40 -rwsr-xr-x   1 root     root        40128 Mar 29  2016 /bin/su
    36067    140 -rwsr-xr-x   1 root     root       142032 Jan 28  2017 /bin/ntfs-3g
    34569     44 -rwsr-xr-x   1 root     root        44680 May  7  2014 /bin/ping6
    70654     40 -rwsr-xr-x   1 root     root        38984 Mar  7  2017 /usr/lib/x86_64-linux-gnu/lxc/lxc-user-nic
   109729     56 -rwsr-xr-x   1 root     root        56456 Feb 24  2017 /usr/lib/snapd/snap-confine
    81785     12 -rwsr-xr-x   1 root     root        10232 Mar 27  2017 /usr/lib/eject/dmcrypt-get-device
   111672     16 -rwsr-xr-x   1 root     root        14864 Jan 18  2016 /usr/lib/policykit-1/polkit-agent-helper-1
    81932    420 -rwsr-xr-x   1 root     root       428240 Aug 11  2016 /usr/lib/openssh/ssh-keysign
    81022     44 -rwsr-xr--   1 root     messagebus    42992 Jan 12  2017 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
    70566     40 -rwsr-xr-x   1 root     root          40432 Mar 29  2016 /usr/bin/chsh
    81609     36 -rwsr-xr-x   1 root     root          32944 Mar 29  2016 /usr/bin/newuidmap
    70786    136 -rwsr-xr-x   1 root     root         136808 Jan 20  2017 /usr/bin/sudo
    70564     52 -rwsr-xr-x   1 root     root          49584 Mar 29  2016 /usr/bin/chfn
    70691     40 -rwsr-xr-x   1 root     root          39904 Mar 29  2016 /usr/bin/newgrp
    82193     52 -rwsr-sr-x   1 daemon   daemon        51464 Jan 15  2016 /usr/bin/at
    82520     24 -rwsr-xr-x   1 root     root          23376 Jan 18  2016 /usr/bin/pkexec
    81608     36 -rwsr-xr-x   1 root     root          32944 Mar 29  2016 /usr/bin/newgidmap
    70627     76 -rwsr-xr-x   1 root     root          75304 Mar 29  2016 /usr/bin/gpasswd
    70702     56 -rwsr-xr-x   1 root     root          54256 Mar 29  2016 /usr/bin/passwd

SGIDs


www-data@cronos:/var/www/admin$ find / -perm -02000 -ls -type f 2>/dev/null
      328      0 drwxr-sr-x   3 root     systemd-journal       60 oct 16 15:50 /run/log/journal
      329      0 drwxr-s---   2 root     systemd-journal      120 oct 16 17:31 /run/log/journal/11d6455b090fd0fdc73300a358d2be77
    70530     36 -rwxr-sr-x   1 root     shadow             35600 Mar 16  2016 /sbin/unix_chkpwd
    70494     36 -rwxr-sr-x   1 root     shadow             35632 Mar 16  2016 /sbin/pam_extrausers_chkpwd
    12988      4 drwxrwsr-x   2 root     mail                4096 may 10 14:51 /var/mail
    12972      4 drwxrwsr-x   2 root     staff               4096 may 10 14:51 /var/local
    18148      4 drwxr-sr-x   2 man      root                4096 may 10 14:51 /var/cache/man
    70387      4 drwxr-sr-x   3 root     bind                4096 jun 17 13:35 /etc/bind
    70413      4 drwxr-sr-x   2 root     bind                4096 may 10 14:51 /etc/bind/zones
   110305     12 -rwxr-sr-x   1 root     utmp               10232 Mar 11  2016 /usr/lib/x86_64-linux-gnu/utempter/utempter
[...]
    82217    428 -rwxr-sr-x   1 root     utmp              434216 Feb  7  2016 /usr/bin/screen
    81924    352 -rwxr-sr-x   1 root     ssh               358624 Aug 11  2016 /usr/bin/ssh-agent
    81915     40 -rwxr-sr-x   1 root     mlocate            39520 Nov 18  2014 /usr/bin/mlocate
    70561     64 -rwxr-sr-x   1 root     shadow             62336 Mar 29  2016 /usr/bin/chage
    70575     36 -rwxr-sr-x   1 root     crontab            36080 Apr  6  2016 /usr/bin/crontab
    82193     52 -rwsr-sr-x   1 daemon   daemon             51464 Jan 15  2016 /usr/bin/at
    70839     28 -rwxr-sr-x   1 root     tty                27368 Dec 16  2016 /usr/bin/wall
    81197     16 -rwxr-sr-x   1 root     tty                14752 Mar  1  2016 /usr/bin/bsd-write
    70612     24 -rwxr-sr-x   1 root     shadow             22768 Mar 29  2016 /usr/bin/expiry

Cron & Systemd


www-data@cronos:/var/www/admin$ crontab -l ; cat /etc/crontab ; systemctl list-timers --all
no crontab for www-data
# /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 )
* * * * *	root	php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
#
NEXT                         LEFT          LAST                         PASSED  
Mon 2023-01-16 21:13:38 EET  1h 21min left Mon 2023-01-16 18:31:40 EET  1h 20min
Tue 2023-01-17 13:31:02 EET  17h left      Mon 2023-01-16 18:31:40 EET  1h 20min
Tue 2023-01-17 18:46:50 EET  22h left      Mon 2023-01-16 18:46:50 EET  1h 5min 
n/a                          n/a           n/a                          n/a     
 
4 timers listed.
 

* * * * * root php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1

Processes


www-data@cronos:/var/www/admin$ ps -aux | grep -i 'root' --color=auto
root         1  0.0  0.5  37964  5232 ?        ss   15:50   0:02 /sbin/init
[...]
root       474  0.0  0.3  28508  3176 ?        ss   15:50   0:00 /lib/systemd/systemd-journald
[...]
root       514  0.0  0.1 102968  1220 ?        ss   15:50   0:00 /sbin/lvmetad -f
[...]
root       530  0.0  0.3  44360  3356 ?        ss   15:50   0:00 /lib/systemd/systemd-udevd
root       952  0.0  0.1   4400  1272 ?        ss   15:50   0:00 /usr/sbin/acpid
root       955  0.0  0.4 275860  4216 ?        ssl  15:50   0:00 /usr/lib/accountsservice/accounts-daemon
root       961  0.0  1.0 266532 11020 ?        ssl  15:50   0:00 /usr/lib/snapd/snapd
root       963  0.0  0.6 192236  6432 ?        ssl  15:50   0:09 /usr/bin/vmtoolsd
root      1025  0.0  0.2  29008  2416 ?        ss   15:50   0:00 /usr/sbin/cron -f
root      1028  0.0  0.1 613404  1680 ?        ssl  15:50   0:00 /usr/bin/lxcfs /var/lib/lxcfs/
root      1035  0.0  0.1  20100  1076 ?        ss   15:50   0:00 /lib/systemd/systemd-logind
root      1067  0.0  0.4 277180  4180 ?        ssl  15:50   0:00 /usr/lib/policykit-1/polkitd --no-debug
root      1084  0.0  0.0  13376   152 ?        ss   15:50   0:00 /sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog
root      1209  0.0  0.5  65520  5160 ?        ss   15:50   0:00 /usr/sbin/sshd -D
root      1231  0.0  0.0   5224   120 ?        ss   15:50   0:00 /sbin/iscsid
root      1232  0.0  0.3   5724  3516 ?        s<ls 15:50   0:01 /sbin/iscsid
root      1306  0.0  0.1  15940  1560 tty1     ss+  15:50   0:00 /sbin/agetty --noclear tty1 linux
root      1345  0.0  2.0 325588 20536 ?        ss   15:50   0:01 /usr/sbin/apache2 -k start
www-data  4416  0.0  0.0  11284  1008 pts/0    s+   19:18   0:00 grep -i root --color=auto

/usr/lib/policykit-1/polkitd

Sudo Version


www-data@cronos:/var/www/admin$ sudsudo -V
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


www-data@cronos:/var/www/admin$ ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu7) 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-0ubuntu7) 2.23