{"id":37943,"date":"2025-08-04T14:33:15","date_gmt":"2025-08-04T17:33:15","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=37943"},"modified":"2025-08-05T15:24:16","modified_gmt":"2025-08-05T18:24:16","slug":"o-que-e-a-senha-root-e-como-redefini-la","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/o-que-e-a-senha-root-e-como-redefini-la\/","title":{"rendered":"O que \u00e9 a senha root e como redefini-la?"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Informa\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<span style=\"font-weight: 400;\">Para come\u00e7ar bem este tutorial, precisamos tratar do conceito de senha root. Por defini\u00e7\u00e3o, esse \u00e9 o passaporte associado ao usu\u00e1rio <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\"> \u2014 o <\/span><b>&#8220;superusu\u00e1rio&#8221;<\/b><span style=\"font-weight: 400;\"> ou <\/span><b>&#8220;administrador master&#8221;<\/b><span style=\"font-weight: 400;\"> da m\u00e1quina virtual Linux.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><span style=\"font-weight: 400;\">Trata-se de algu\u00e9m com permiss\u00e3o total e irrestrita para executar qualquer atividade administrativa, incluindo:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Instala\u00e7\u00e3o e remo\u00e7\u00e3o de programas<\/b><span style=\"font-weight: 400;\"> em todo o sistema operacional.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Altera\u00e7\u00e3o de configura\u00e7\u00f5es globais<\/b><span style=\"font-weight: 400;\"> do sistema operacional.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Acesso, modifica\u00e7\u00e3o e exclus\u00e3o de qualquer arquivo<\/b><span style=\"font-weight: 400;\"> na VM, independentemente de quem seja o dono.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Gerenciamento dos usu\u00e1rios e seus perfis<\/b><span style=\"font-weight: 400;\">, incluindo cria\u00e7\u00e3o de contas e altera\u00e7\u00e3o de senhas.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>In\u00edcio ou parada dos servi\u00e7os essenciais<\/b><span style=\"font-weight: 400;\"> do sistema.<\/span><\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Alerta de seguran\u00e7a cr\u00edtico<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<\/p>\n<p><span style=\"font-weight: 400;\">Grandes poderes est\u00e3o relacionados a responsabilidades da mesma dimens\u00e3o. Por isso,<\/span><b> evite associar usu\u00e1rio <\/b><b>root<\/b><b> \u00e0 execu\u00e7\u00e3o de tarefas do dia a dia.<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Um comando digitado errado por um usu\u00e1rio <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\"> pode danificar ou apagar permanentemente seu sistema. A pr\u00e1tica recomendada \u00e9 realizar as atividades cotidianas a partir de usu\u00e1rio comum e usar o comando <\/span><span style=\"font-weight: 400;\">sudo, <\/span><span style=\"font-weight: 400;\">quando for necess\u00e1rio o acesso privilegiado, na categoria de administrador.<\/span><\/p>\n<p>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h2><b>Como alterar o redefinir a senha <\/b><b>root<\/b><b> no Locaweb Cloud<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Se voc\u00ea esqueceu ou precisa redefinir a senha <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\"> da sua VM, nossa plataforma oferece uma funcionalidade que resolve o problema, gerando uma nova senha aleat\u00f3ria.<\/span><\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Importante!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<span style=\"font-weight: 400;\">Esta a\u00e7\u00e3o envolve a <\/span><b>reinicializa\u00e7\u00e3o autom\u00e1tica da sua VM. <\/b><span style=\"font-weight: 400;\">Voc\u00ea deve execut\u00e1-la, portanto, quando estiver programado para um breve per\u00edodo de indisponibilidade.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h3><span style=\"font-weight: 400;\">Feito o alerta, vamos ao passo a passo:<\/span><\/h3>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No painel do Locaweb Cloud, clique em <\/span><b>computa\u00e7\u00e3o e depois em VMs<\/b><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Em seguida, <\/span><b>localize e clique no link com o nome da VM<\/b><span style=\"font-weight: 400;\"> em que deseja redefinir ou alterar senha.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37944\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo.png\" alt=\"\" width=\"1600\" height=\"803\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo.png 1600w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-300x151.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-1024x514.png 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-768x385.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-50x25.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-1536x771.png 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-60x30.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Associar-VM-a-grupo-100x50.png 100w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ent\u00e3o, clique no bot\u00e3o <\/span><b>redefinir senha, <\/b><span style=\"font-weight: 400;\">da barra de ferramentas superior direita. Lembrando que essa barra s\u00f3 aparece quando sua VM n\u00e3o estiver rodando. Nesse caso, ser\u00e1 necess\u00e1rio par\u00e1-la antes desse passo.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-37945\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.1-Redefinir-senha.png\" alt=\"\" width=\"603\" height=\"311\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.1-Redefinir-senha.png 512w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.1-Redefinir-senha-300x155.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.1-Redefinir-senha-50x26.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.1-Redefinir-senha-60x31.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.1-Redefinir-senha-100x52.png 100w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">No modal que surgir\u00e1 na tela, <b>digite a nova senha.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37946\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.2-Redefinir-senhas.png\" alt=\"\" width=\"512\" height=\"301\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.2-Redefinir-senhas.png 512w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.2-Redefinir-senhas-300x176.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.2-Redefinir-senhas-50x29.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.2-Redefinir-senhas-60x35.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.2-Redefinir-senhas-100x59.png 100w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00c9 a hora de validar a a\u00e7\u00e3o, clicando em <\/span><b>OK<\/b><span style=\"font-weight: 400;\">,<\/span> <span style=\"font-weight: 400;\">e aguardar a confirma\u00e7\u00e3o de que a senha <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\"> foi alterada.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Importante!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAp\u00f3s essa confirma\u00e7\u00e3o, uma\u00a0 janela aparecer\u00e1 na sua tela, informando a <b>nova senha <\/b><b>root<\/b><b> gerada<\/b>. <b>Copie e guarde esta informa\u00e7\u00e3o imediatamente, em um local seguro!<\/b> Sua senha root n\u00e3o ser\u00e1 exibida novamente.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Com esta nova senha em m\u00e3os, voc\u00ea j\u00e1 pode acessar sua VM como usu\u00e1rio <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3><b>Pr\u00f3ximos passos<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>N\u00e3o use <\/b><b>root<\/b><b> para login direto:<\/b><span style=\"font-weight: 400;\"> ap\u00f3s configurar um usu\u00e1rio comum com <\/span><span style=\"font-weight: 400;\">sudo<\/span><span style=\"font-weight: 400;\">, <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/tipos-de-redes-do-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">desabilite o login SSH<\/span><\/a><span style=\"font-weight: 400;\"> para o usu\u00e1rio <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\">. Esse procedimento aumenta a seguran\u00e7a.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Prefira chaves SSH:<\/b><span style=\"font-weight: 400;\"> para o acesso do dia a dia, <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-criar-e-usar-chaves-ssh-em-vms\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">chaves SSH<\/span><\/a><span style=\"font-weight: 400;\"> s\u00e3o mais pr\u00e1ticas e seguras do que as senhas.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Guarde a senha <\/b><b>root<\/b><b>:<\/b><span style=\"font-weight: 400;\"> mantenha a senha <\/span><span style=\"font-weight: 400;\">root<\/span><span style=\"font-weight: 400;\"> armazenada em um local seguro \u2014 como um gerenciador de senhas \u2014 para uso emergencial. Lembre-se de que o uso rotineiro deve ser evitado.<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Trata-se de algu\u00e9m com permiss\u00e3o total e irrestrita para executar qualquer atividade administrativa, incluindo: Instala\u00e7\u00e3o e remo\u00e7\u00e3o de programas em todo o sistema operacional. Altera\u00e7\u00e3o de configura\u00e7\u00f5es globais do sistema operacional. Acesso, modifica\u00e7\u00e3o e exclus\u00e3o de qualquer arquivo na VM, independentemente de quem seja o dono. Gerenciamento dos usu\u00e1rios e&#8230;<\/p>\n","protected":false},"author":29,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[666],"ht-kb-tag":[],"class_list":["post-37943","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-locaweb-cloud"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/37943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=37943"}],"version-history":[{"count":2,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/37943\/revisions"}],"predecessor-version":[{"id":38149,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/37943\/revisions\/38149"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=37943"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=37943"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=37943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}