TENDO ERROS DEVIDO A PERMISSÕES INCORRETAS

usei estes comandos para ouvir o que esta acontecendo, só não sei por onde começar e como interpretar o que eu fiz de errado….

history | egrep '(chown|chmod)'

retornou a seguinte:

root@isp:~# history | egrep '(chown|chmod)'
101 chown -R /var/www/clients/client0/web13/web
102 chown -R /var/www/clients/client0/web13/web *
108 chown -R web13:client0 *
114 chown -R /var/www/clients/client0/web13/web
120 chown -R web13:client0 *
121 chmod -R g+rw *
128 chown -R web20:client0 *
129 chmod -R g+rw *
156 chmod 644 /usr/lib/sudo/sudoers.so
159 sudo chmod 644 /usr/lib/sudo/sudoers.so
160 sudo chmod 644 /usr/lib/sudo/sudoers.so
177 sudo chmod 644 /usr/lib/sudo/sudoers.so
181 chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
184 su chmod 644 /usr/lib/sudo/sudoers.so
185 su chmod 644 /usr/lib/sudo/sudoer
186 chmod 644 /usr/lib/sudo/sudoers.so
223 sudo chmod 644 /usr/lib/sudo/sudoers.so
242 pkexec chown root /usr/lib/sudo/sudoers.so
252 chown -R root:root *
257 chown -R root:root *
274 chown -R root:root *
287 chown -R clients:client0 *
300 chown -R root:client0 *
307 chown -R web13:client0 *
309 chmod -R g+rw *
312 chown
313 chown -R web13:client0 *
357 chown -R web16:client0 *
366 chown -R web9:client0 *
374 chown -R web17:client0 *
381 chown -R web8:client0 *
386 chown -R web6:client0 *
391 chown -R web13:client0 *
396 chown -R web1:client0 *
401 chown -R web20:client0 *
406 chown -R web7:client0 *
439 chown -R clients:client0 web6
442 chown -R web6:client0 *
446 chmod -R g+rw *
450 chmod -R g+rw *
472 chown -R web6:client0 web6
485 história | egrep '(chown | chmod)'
486 história | egrep '(chown | chmod
487 history | egrep '(chown|chmod)'

Tento acessar o meu Painel de Controle ispconfig pelo https://isp.webjumper.com.br:8080/login/ e
retorna 403 Forbidden nginx/1.10.3

acessei os logs:

2019/06/04 18:05:42 [error] 13380#13380: *4 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:05:42 [error] 13380#13380: *4 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:05:45 [error] 13380#13380: *4 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:05:45 [error] 13380#13380: *4 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:05:46 [error] 13380#13380: *4 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:05:46 [error] 13380#13380: *4 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:05:58 [error] 13380#13380: *4 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:05:58 [error] 13380#13380: *4 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:06:37 [error] 13705#13705: *3 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:06:37 [error] 13705#13705: *3 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:13:09 [error] 16063#16063: *6 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:13:09 [error] 16063#16063: *6 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:49:43 [error] 29098#29098: *3 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:49:43 [error] 29098#29098: *3 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:49:46 [error] 29098#29098: *3 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:49:46 [error] 29098#29098: *3 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:50:43 [error] 29509#29509: *3 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:50:44 [error] 29509#29509: *3 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"
2019/06/04 18:50:46 [error] 29509#29509: *3 "/usr/local/ispconfig/interface/web/login/index.php" is forbidden (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /login/ HTTP/1.1", host: "isp.webjumper.com.br:8080" 2019/06/04 18:50:46 [error] 29509#29509: *3 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (13: Permission denied), client: 2804:d51:2b5c:9d00:53c:288e:f468:5a5b, server: , request: "GET /favicon.ico HTTP/1.1", host: "isp.webjumper.com.br:8080", referrer: "https://isp.webjumper.com.br:8080/login/"

gostaria de saber qual caminho tomar pois sem o acesso ao painel de controle não consigo acessar os sites que tambem estão dando retornando 500 Internal Server Error nginx/1.10.3 ….

Sou leigo no assunto mas sei usar o SSH, só não sei pra onde ir, estou em apuros…..

1 Reply

I used Google Translate to try and understand your question, as I'm not a native Portuguese speaker. Based on this, I believe your issue is about permissions being changed, and now you're unable to access your control panel. If this isn't the right read on the situation, please correct me.

First, because I see the recursive flag when you ran the chown command, this issue could run deeper than I'm able to see from these commands. Multiple files and directories could be affected by this. If you have a backup available, I would suggest starting with this.

If you're locked out from your Linode because of permissions being changed, you can still access it using LISH, the Linode Shell. This can be done through Cloud Manager or SSH. Even if you have root access disabled, you can still use that for access in LISH. You'll still need the password for access, though. Should you not remember the password for your root user, it can be reset through Cloud Manager in most cases. In your case, you may need boot into rescue mode to reset the root password. The following Community post covers how to do reset the root password if the Cloud Manager option doesn't work for you:

The root password reset option doesn't work for my Linode. How can I reset my root password?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct