← All Kali Issues
Sudo
User not in sudoers file
P Permission
Critical
🔴 Error Message
user is not in the sudoers file. This incident will be reported
📖 What This Means
User account not authorized for sudo.
🔧 Step-by-Step Fix
- Switch to root: su -
- Edit sudoers: visudo
- Add: username ALL=(ALL:ALL) ALL
- Or add to sudo group: usermod -aG sudo username
- In recovery mode: mount -o rw,remount /