0
sudo fdisk -l

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

How to access permission to sda ( Primary HDD )

grooveplex
  • 2,506
  • 3
  • 27
  • 35

1 Answers1

1

Your /usr/bin/sudo executable has either a wrong owner or permission set.

No matter which one applies here, the following two commands should fix it:

pkexec chown root: /usr/bin/sudo 
pkexec chmod 4755 /usr/bin/sudo

After that, sudo should be working normally again and you will be able to use it to run fdisk with root privileges with it.

Byte Commander
  • 110,243