# Verificação do Arquivo Sudoers no Linux

## Passo 1 - Abra o Terminal

**1.1 Aperte as teclas CTRL + ALT + T para abrir o Terminal.** \
\
**1.2 Em seguida, digite o comando:**

```
sudo nano /etc/sudoers.d/edgecontents
```

<figure><img src="/files/LAsu2JTeJYUANW290MhY" alt=""><figcaption></figcaption></figure>

**1.3 Tecle ENTER. Ao executar o comando, o terminal pedirá a sua senha de root. Digite a senha, Tecle ENTER novamente e arquivo Sudoers será aberto.**<br>

## Passo 2 - Verifique o arquivo e edite, se necessário.

O seu arquivo deve ter essa estrutura padrão como exemplo:

<figure><img src="/files/VShqmofjekdc707UmNXW" alt=""><figcaption></figcaption></figure>

**Observação:** Após o símbolo %, insira o nome do seu usuário. Você pode verificar seu nome de usuário no terminal com o comando `whoami`.

```
%usuario ALL = NOPASSWD: /sbin/shutdown,/sbin/reboot,/bin/date,/usr/bin/timedatectl
```

#### Corrigir o Arquivo Sudoers

**2.1 Corrigir o Arquivo:**

* Abra o arquivo sudoers.
* Corrija possíveis erros de acordo com os padrões requeridos no print Acima.

**2.2 Salvar Alterações:**

* Pressione `CTRL + O` para salvar.
* Aperte `ENTER` para confirmar o salvamento.

**2.3 Sair do Editor:**

* Use `CTRL + X` para fechar o arquivo.

## Passo 3 - Testando suas novas Configurações.

\
**3.1 Novamente no terminal, digite o comando:**

```
sudo shutdown -r now
```

Se a sua máquina reiniciar instantaneamente após esse comando, então a configuração foi concluída com Sucesso!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.edgecontents.com/edgecontents/informacoes-uteis/verificacao-do-arquivo-sudoers-no-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
