Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3250

Beginners Questions • [O/S] Adding User to Sudoers

$
0
0
Deb12/Bookworm installed 26May24. Searched this forum for keyword: sudoers - 600+ hits returned. Read several, but didn't see my exact problem.

How do I add the "user" (not the administrator) to the sudoers file in order to remove a symlink? Or any other task requiring elevated permissions, short of being root administration?

From the Internet:

Code:

sudo usermod -aG sudo [username]
so I did: su - and entered root pw. Next typed: usermod -aG my-user-name.

Checking for addition of user to sudoers group:

Code:

root@debian:~# groups my-user-name
terminal returns:

Code:

my-user-name : my-user-name cdrom floppy sudo audio dip video plugdev users netdev bluetooth lpadmin scanner
but when I do:

rm symlink, the terminal returns: my-user-name is not in the sudoers file.

Statistics: Posted by JeSuisFlaneur — 2024-05-27 13:53 — Replies 3 — Views 104



Viewing all articles
Browse latest Browse all 3250

Trending Articles