From f2d3517187c9dbb86659e7272f15a2986585c2a9 Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Tue, 24 Sep 2024 17:19:52 +0300 Subject: [PATCH 1/2] clarifying the non-root-user command --- src/content/docs/knowledge-base/server/non-root-user.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/docs/knowledge-base/server/non-root-user.mdx b/src/content/docs/knowledge-base/server/non-root-user.mdx index 788c300..9c79868 100644 --- a/src/content/docs/knowledge-base/server/non-root-user.mdx +++ b/src/content/docs/knowledge-base/server/non-root-user.mdx @@ -26,11 +26,12 @@ For this to work, you need to set up the server correctly. You need to add the following lines to the `/etc/sudoers` file: ```bash -# Allow the non-root user to run commands as root without a password -non-root-user ALL=(ALL) NOPASSWD: ALL +# Allow the your-non-root-user to run commands as root without a password +your-non-root-user ALL=(ALL) NOPASSWD: ALL ``` This will allow the non-root user to any command as root without a password. +Note: .you need to replace "your-non-root-user" with your user.