From 17bc162d48d9f7fdd3071c3a1fd1a105229ed9d2 Mon Sep 17 00:00:00 2001 From: Bojan Bogojevic <20166636+Bojan023@users.noreply.github.com> Date: Wed, 22 Mar 2023 12:12:49 +0100 Subject: [PATCH] Add cli command to check current sudoers --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48a1d95..2334ebe 100644 --- a/README.md +++ b/README.md @@ -792,7 +792,11 @@ sudo lets accounts run commands as other accounts, including **root**. We want t #### Notes - Your installation may have already done this, or may already have a special group intended for this purpose so check first. - - Debian creates the sudo group + - Debian creates the sudo group. To view users that are part of this group (thus have sudo privileges): + + ``` + cat /etc/group | grep "sudo" + ``` - RedHat creates the wheel group - See [https://github.com/imthenachoman/How-To-Secure-A-Linux-Server/issues/39](https://github.com/imthenachoman/How-To-Secure-A-Linux-Server/issues/39) for a note on some distributions making it so `sudo` does not require a password. Thanks to [sbrl](https://github.com/sbrl) for sharing.