kihei/i-0ead36c6be7f7d974
by SadServersMore by SadServers
admin@i-072d28a9ffafc9157:~$ systemctl edit flaskapp.service Failed to create directories for "/etc/systemd/system/flaskapp.service.d/overridadmin@i-072d28a9ffafc9157:~$ systemctl cat flaskapp.service # /etc/systemd/system/flaskapp.service [Unit] Description=Flask Application After=network.target [Service] ExecStart=/usr/bin/python3 /home/admin/webserver.py [Install] WantedBy=multi-user.target admin@i-072d28a9ffafc9157:~$ vim /etc/systemd/system/flaskapp.service
paris/i-072d28a9ffafc9157 07:10
by SadServersstrings: webserver.py: Permission denied admin@i-0eed1c77d78127958:~$ ls -al total 44 drwxr-xr-x 6 admin admin 4096 Sep 24 2023 . drwxr-xr-x 3 root root 4096 Sep 17 2023 .. drwx------ 3 admin admin 4096 Sep 20 2023 .ansible -rw------- 1 admin admin 530 Feb 26 17:43 .bash_history -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4096 Sep 20 2023 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 2023 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 2023 agent -rwxrwx--- 1 root root 360 Sep 24 2023 webserver.py admin@i-0eed1c77d78127958:~$
paris/i-0eed1c77d78127958 02:26
by SadServers) = 1 [pid 1299] exit_group(2) = ? [pid 1302] <... futex resumed>) = ? [pid 1301] <... futex resumed>) = ? [pid 1300] <... futex resumed>) = ? [pid 1300] +++ exited with 2 +++ [pid 1303] <... futex resumed>) = ? [pid 1302] +++ exited with 2 +++ [pid 1301] +++ exited with 2 +++ [pid 1303] +++ exited with 2 +++ +++ exited with 2 +++ admin@i-0b55e00bc204a4de1:~$ ls -l /home/admin/data total 16 drwx------ 2 root root 16384 Mar 10 18:50 lost+found admin@i-0b55e00bc204a4de1:~$