← 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

  1. Switch to root: su -
  2. Edit sudoers: visudo
  3. Add: username ALL=(ALL:ALL) ALL
  4. Or add to sudo group: usermod -aG sudo username
  5. In recovery mode: mount -o rw,remount /