FG
💻 Software

User supposedly not in sudoers file, but already is

Fresh6 days ago
Mar 15, 2026716 views
Confidence Score0%
0%

Problem

I wanted to give sudo privileges. I added to the admin group: Then I used visudo to check if admin users had been set to receive sudo privileges. I uncommented the line . It didn't work. sudoers file:

Error Output

Defaults        env_reset  
root    ALL=(ALL:ALL) ALL  
admin   ALL=(ALL) ALL  
%sudo   ALL=(ALL:ALL) ALL

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: User supposedly not in sudoers file, but already is

Low Risk

Can you post the relevant sections of your sudoers file? Re-posted from the comment below: [edit]admin should be %admin - Percent signs are used for groups, you could have also just added the user to be in the sudo group [/edit] One quick thing to t…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment