paris/i-0c826a6b275be070d
by SadServersMore by SadServers
total 44 -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout drwxr-xr-x 3 root root 4096 Sep 17 2023 .. drwx------ 2 admin admin 4096 Sep 17 2023 .ssh drwx------ 3 admin admin 4096 Sep 20 2023 .ansible drwxr-xr-x 3 admin admin 4096 Sep 20 2023 .config -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py drwxr-xr-x 6 admin admin 4096 Sep 24 2023 . drwxr-xr-x 2 admin root 4096 Sep 24 2023 agent -rw------- 1 admin admin 365 Mar 22 18:19 .bash_history admin@i-07f4b9072767bd934:~$ cat webserver.py cat: webserver.py: Permission denied admin@i-07f4b9072767bd934:~$ sudo su - roo
paris/i-07f4b9072767bd934 04:45
by SadServerscat: /etc/sudoers: Permission denied admin@i-092d4cf55fa0651c2:~$ sudo python3 webserver.py 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: a password is required admin@i-092d4cf55fa0651c2:~$ ls agent webserver.py admin@i-092d4cf55fa0651c2:~$ ps aux |grep webserver
paris/i-092d4cf55fa0651c2 04:06
by SadServersagent consumer.py producer.py rabbitmq-cluster-docker-master test admin@i-0e75dbb75ece0e13b:~$ cd test admin@i-0e75dbb75ece0e13b:~/test$ ls LICENSE README.md cluster-entrypoint.sh docker-compose.yml entrypoint.sh haadmin@i-0e75dbb75ece0e13b:~/test$ python3 ~/producer.py hello-lwc. Traceback (most recent call last): File "/home/admin/producer.py", line 18, in <module> connection = pika.BlockingConnection(parameters) File "/usr/local/lib/python3.9/dist-packages/pika/adapters/blocking_connection self._impl = self._create_connection(parameters, _impl_class) File "/usr/local/lib/python3.9/dist-packages/pika/adapters/blocking_connectionction raise self._reap_last_connection_workflow_error(error) pika.exceptions.AMQPConnectionError admin@i-0e75dbb75ece0e13b:~/test$ chmod 777 cluster-entrypoint.sh