System/Kernel
www-data@haircut:~/html$ 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 haircut 4.4.0-78-generic #99-ubuntu smp thu apr 27 15:29:09 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
4.4.0-78-generic
Ubuntu 16.04.2 LTS (Xenial Xerus)
x86_64
Networks
www-data@haircut:~/html$ 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:80 0.0.0.0:* LISTEN 1218/nginx: worker
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 10.10.10.24:50380 10.10.14.5:9998 ESTABLISHED 3916/sh
tcp 0 297 10.10.10.24:48388 10.10.14.5:9999 ESTABLISHED 3914/sh
udp 0 0 10.10.10.24:42884 8.8.8.8:53 ESTABLISHED -
127.0.0.1:3306
Users & Groups
www-data@haircut:~/html$ 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
maria:x:1000:1000:maria,,,:/home/maria:/bin/bash
mysql:x:110:117:MySQL Server,,,:/nonexistent:/bin/false
lightdm:x:111:118:Light Display Manager:/var/lib/lightdm:/bin/false
pulse:x:112:121:PulseAudio daemon,,,:/var/run/pulse:/bin/false
sshd:x:113:65534::/var/run/sshd:/usr/sbin/nologin
total 12K
4.0K drwxr-xr-x 15 maria maria 4.0K Jul 13 2021 maria
4.0K drwxr-xr-x 3 root root 4.0K Jul 13 2021 .
4.0K drwxr-xr-x 23 root root 4.0K Jul 13 2021 ..
maria
SUIDs
www-data@haircut:~/html$ find / -perm -04000 -ls -type f 2>/dev/null
53377 140 -rwsr-xr-x 1 root root 142032 Jan 28 2017 /bin/ntfs-3g
52805 44 -rwsr-xr-x 1 root root 44680 May 7 2014 /bin/ping6
53367 32 -rwsr-xr-x 1 root root 30800 Jul 12 2016 /bin/fusermount
52955 40 -rwsr-xr-x 1 root root 40128 May 4 2017 /bin/su
52791 40 -rwsr-xr-x 1 root root 40152 Dec 16 2016 /bin/mount
52804 44 -rwsr-xr-x 1 root root 44168 May 7 2014 /bin/ping
52839 28 -rwsr-xr-x 1 root root 27608 Dec 16 2016 /bin/umount
262400 136 -rwsr-xr-x 1 root root 136808 Jan 20 2017 /usr/bin/sudo
273351 24 -rwsr-xr-x 1 root root 23376 Jan 18 2016 /usr/bin/pkexec
266457 36 -rwsr-xr-x 1 root root 32944 May 4 2017 /usr/bin/newuidmap
266260 40 -rwsr-xr-x 1 root root 39904 May 4 2017 /usr/bin/newgrp
266765 36 -rwsr-xr-x 1 root root 32944 May 4 2017 /usr/bin/newgidmap
267324 76 -rwsr-xr-x 1 root root 75304 May 4 2017 /usr/bin/gpasswd
273121 52 -rwsr-sr-x 1 daemon daemon 51464 Jan 14 2016 /usr/bin/at
267325 56 -rwsr-xr-x 1 root root 54256 May 4 2017 /usr/bin/passwd
268146 1552 -rwsr-xr-x 1 root root 1588648 May 19 2017 /usr/bin/screen-4.5.0
267327 40 -rwsr-xr-x 1 root root 40432 May 4 2017 /usr/bin/chsh
267323 52 -rwsr-xr-x 1 root root 49584 May 4 2017 /usr/bin/chfn
265697 40 -rwsr-xr-x 1 root root 38984 Mar 7 2017 /usr/lib/x86_64-linux-gnu/lxc/lxc-user-nic
272188 44 -rwsr-xr-- 1 root messagebus 42992 Jan 12 2017 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
28123 204 -rwsr-xr-x 1 root root 208680 Apr 29 2017 /usr/lib/snapd/snap-confine
265195 12 -rwsr-xr-x 1 root root 10232 Mar 27 2017 /usr/lib/eject/dmcrypt-get-device
267345 420 -rwsr-xr-x 1 root root 428240 Mar 16 2017 /usr/lib/openssh/ssh-keysign
26270 16 -rwsr-xr-x 1 root root 14864 Jan 18 2016 /usr/lib/policykit-1/polkit-agent-helper-1
/bin/ntfs-3g
/usr/bin/pkexec
/usr/bin/screen-4.5.0
SGIDs
www-data@haircut:~/html$ find / -perm -02000 -ls -type f 2>/dev/null
52967 36 -rwxr-sr-x 1 root shadow 35600 Mar 16 2016 /sbin/unix_chkpwd
52931 36 -rwxr-sr-x 1 root shadow 35632 Mar 16 2016 /sbin/pam_extrausers_chkpwd
1004 4 drwxrwsr-x 2 root staff 4096 Apr 12 2016 /var/local
1020 4 drwxrwsr-x 2 root mail 4096 Feb 15 2017 /var/mail
272882 40 -rwxr-sr-x 1 root mlocate 39520 Nov 18 2014 /usr/bin/mlocate
267326 64 -rwxr-sr-x 1 root shadow 62336 May 4 2017 /usr/bin/chage
273159 428 -rwxr-sr-x 1 root utmp 434216 Feb 7 2016 /usr/bin/screen.old
262189 36 -rwxr-sr-x 1 root crontab 36080 Apr 5 2016 /usr/bin/crontab
272355 16 -rwxr-sr-x 1 root tty 14752 Mar 1 2016 /usr/bin/bsd-write
267322 24 -rwxr-sr-x 1 root shadow 22768 May 4 2017 /usr/bin/expiry
267356 352 -rwxr-sr-x 1 root ssh 358624 Mar 16 2017 /usr/bin/ssh-agent
262453 28 -rwxr-sr-x 1 root tty 27368 Dec 16 2016 /usr/bin/wall
273155 12 -rwxr-sr-x 1 root utmp 10232 Mar 11 2016 /usr/lib/x86_64-linux-gnu/utempter/utempter
265152 4 drwxrwsr-x 3 root staff 4096 May 15 2017 /usr/local/lib/python3.5
265153 4 drwxrwsr-x 2 root staff 4096 Feb 15 2017 /usr/local/lib/python3.5/dist-packages
28238 4 drwxrwsr-x 2 root staff 4096 Jul 13 2021 /usr/local/share/fonts
273610 4 drwxrwsr-x 6 root staff 4096 May 15 2017 /usr/local/share/xml
273611 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/xml/misc
273612 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/xml/declaration
273614 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/xml/schema
273613 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/xml/entities
273541 4 drwxrwsr-x 7 root staff 4096 May 15 2017 /usr/local/share/sgml
273546 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/sgml/dtd
273545 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/sgml/misc
273542 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/sgml/declaration
273543 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/sgml/stylesheet
273544 4 drwxrwsr-x 2 root staff 4096 May 15 2017 /usr/local/share/sgml/entities
295 0 drwxr-sr-x 3 root systemd-journal 60 feb 3 12:22 /run/log/journal
296 0 drwxr-s--- 2 root systemd-journal 80 feb 3 12:22 /run/log/journal/949f1809ad2507e1ab99350e591993eb
Processes
www-data@haircut:~/html$ ps -auxwww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.2 0.2 37952 6004 ? Ss 12:21 0:02 /sbin/init
root 464 0.0 0.1 29648 2864 ? Ss 12:22 0:00 /lib/systemd/systemd-journald
root 490 0.0 0.0 94772 1704 ? Ss 12:22 0:00 /sbin/lvmetad -f
root 515 0.0 0.1 44360 3932 ? Ss 12:22 0:00 /lib/systemd/systemd-udevd
systemd+ 591 0.0 0.1 100324 2584 ? Ssl 12:22 0:00 /lib/systemd/systemd-timesyncd
root 1001 0.0 0.0 5224 156 ? Ss 12:22 0:00 /sbin/iscsid
root 1002 0.0 0.1 5724 3516 ? S<Ls 12:22 0:00 /sbin/iscsid
root 1018 0.0 0.2 65520 5368 ? Ss 12:22 0:00 /usr/sbin/sshd -D
message+ 1019 0.0 0.1 42960 4040 ? Ss 12:22 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root 1025 0.0 0.3 275768 6212 ? Ssl 12:22 0:00 /usr/lib/accountsservice/accounts-daemon
root 1027 0.0 0.0 20100 1180 ? Ss 12:22 0:00 /lib/systemd/systemd-logind
root 1029 0.0 1.1 201612 22940 ? Ssl 12:22 0:00 /usr/lib/snapd/snapd
root 1042 0.1 0.5 192244 10336 ? Ssl 12:22 0:00 /usr/bin/vmtoolsd
root 1053 0.0 0.1 29008 2880 ? Ss 12:22 0:00 /usr/sbin/cron -f
syslog 1071 0.0 0.1 256396 3328 ? Ssl 12:22 0:00 /usr/sbin/rsyslogd -n
root 1093 0.0 0.0 4400 1276 ? Ss 12:22 0:00 /usr/sbin/acpid
daemon 1095 0.0 0.1 26044 2344 ? Ss 12:22 0:00 /usr/sbin/atd -f
root 1096 0.5 0.3 637300 7072 ? Ssl 12:22 0:04 /usr/bin/lxcfs /var/lib/lxcfs/
root 1103 0.0 0.1 15744 2516 ? Ss 12:22 0:00 /usr/sbin/anacron -dsq
mysql 1144 0.0 7.5 1115840 154400 ? Ssl 12:22 0:00 /usr/sbin/mysqld
root 1175 0.0 0.4 277180 8240 ? Ssl 12:22 0:00 /usr/lib/policykit-1/polkitd --no-debug
root 1192 0.0 0.0 13376 164 ? Ss 12:22 0:00 /sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog
root 1195 0.0 0.0 15940 1800 tty1 Ss+ 12:22 0:00 /sbin/agetty --noclear tty1 linux
root 1217 0.0 0.0 125112 1460 ? Ss 12:22 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
root 1220 0.0 1.2 221516 25384 ? Ss 12:22 0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data 22878 0.0 0.1 34424 2896 pts/0 R+ 12:35 0:00 ps -auxwww
/usr/sbin/cron -f
/usr/lib/policykit-1/polkitd --no-debug
Cron & Systemd
www-data@haircut:~/html$ crontab -l ; cat /etc/crontab ; systemctl list-timers
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 )
#
NEXT LEFT LAST PASSED
fri 2023-02-03 12:36:51 CET 4s left n/a n/a
fri 2023-02-03 18:01:36 CET 5h 24min left Fri 2023-02-03 12:22:05 CET 14min ag
fri 2023-02-03 18:41:36 CET 6h left Fri 2023-02-03 12:22:05 CET 14min ag
3 timers listed.
Pass --all to see loaded but inactive timers, too.
Sudo Version
www-data@haircut:~/html$ sudo -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@haircut:~/html$ 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