command-line-murders/i-054f01fab5c639973
by SadServersMore by SadServers
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for admin: sudo: no password was provided sudo: a password is required admin@i-00bec02e20d648cd2:~$ cat .ansible/tmp/ cat: .ansible/tmp/: Is a directory admin@i-00bec02e20d648cd2:~$ cd .ansible/ admin@i-00bec02e20d648cd2:~/.ansible$
paris/i-00bec02e20d648cd2 01:08
by SadServersgrep: gshadow: Permission denied grep: ssh/ssh_host_dsa_key: Permission denied grep: ssh/ssh_host_ecdsa_key: Permission denied grep: ssh/ssh_host_ed25519_key: Permission denied grep: ssh/ssh_host_rsa_key: Permission denied grep: shadow: Permission denied systemd/system/flaskapp.service:ExecStart=/usr/bin/python3 /home/admin/webservergrep: sudoers: Permission denied grep: chrony/chrony.keys: Permission denied grep: ssl/private: Permission denied admin@i-097c610b9da49ee27:/etc$ file cloud-init-output.log cloud-init-output.log: cannot open `cloud-init-output.log' (No such file or direadmin@i-097c610b9da49ee27:/etc$ file systemd/system/flaskapp.service systemd/system/flaskapp.service: ASCII text admin@i-097c610b9da49ee27:/etc$ wc -
paris/i-097c610b9da49ee27 06:55
by SadServers[Service] ExecStart=/usr/bin/python3 /home/admin/webserver.py [Install] WantedBy=multi-user.target admin@i-0ebbbbda7606d97e5:/etc/systemd/system$ cat /home/admin/webserver.py cat: /home/admin/webserver.py: Permission denied admin@i-0ebbbbda7606d97e5:/etc/systemd/system$ ps aux | grep webserver root 564 0.2 5.9 33040 27816 ? Ss 22:43 0:00 /usr/bin/pythadmin 814 0.0 0.1 5264 704 pts/1 R<+ 22:45 0:00 grep webserveadmin@i-0ebbbbda7606d97e5:/etc/systemd/system$ cat /proc/5 5/ 50/ 51/ 52/ 54/ 55/ 557/ 558/ 56/ 561/ 562/ 564/ 565/ 57/ 58/ 581/ admin@i-0ebbbbda7606d97e5:/etc/systemd/system$ cat /proc/5 5/ 50/ 51/ 52/ 54/ 55/ 557/ 558/ 56/ 561/ 562/ 564/ 565/ 57/ 58/ 581/ admin@i-0ebbbbda7606d97e5:/etc/systemd/system$ cat /proc/55
paris/i-0ebbbbda7606d97e5 01:58
by SadServersadmin@i-0922830d655d595af:~$ vgcreate data-vg /dev/nvme1n1 WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-0922830d655d595af:~$ sudo vgcreate data-vg /dev/nvme1n1 Physical volume "/dev/nvme1n1" successfully created. Volume group "data-vg" successfully created admin@i-0922830d655d595af:~$ vgs WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-0922830d655d595af:~$ sudo vgs VG #PV #LV #SN Attr VSize VFree data-vg 1 0 0 wz--n- 1020.00m 1020.00m admin@i-0922830d655d595af:~$ sudo vgcreate data-vg /dev/nvme2n1 A volume group called data-vg already exists. admin@i-0922830d655d595af:~$ sudo vgextend data-vg /d