Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » SU Authentication Fix: Sudo Permission Denied in Ubuntu
  • How to Disable device encryption
    How to Disable device encryption on Windows Windows
  • Dockerxx1
    How to install and uninstall Docker Desktop on Windows 10 and Windows Server Containers
  • Local System Account
    How to Run a Program in Windows as the Local System Account Windows
  • what is saml e1690630549650
    What is SAML – Security Assertion Markup Language Windows Server
  • selinux in production
    How to locate directory file context and restore it with SELinux Linux
  • winSEARCH
    Hide or Remove Search Button from Windows 10 Taskbar Windows
  • Driver Automation Tool
    Windows Driver Management: Upgrade Driver Automation Tool Windows
  • vSwitches
    vSwitches: How to delete Virtual Switches from Hyper-V Virtualization

SU Authentication Fix: Sudo Permission Denied in Ubuntu

Posted on 20/02/202215/09/2023 Imoh Etuk By Imoh Etuk 3 Comments on SU Authentication Fix: Sudo Permission Denied in Ubuntu
Slide2-1

In this short guide, you will learn how to fix the SU authentication Failure in Linux. With this error, you will also encounter the Permission denied message when trying to carry out any installation with sudo permission. In Linux, there are different types of users, and sudo or the root user is one of such users but a user with full permission to execute any command in Linux. We will discuss “SU Authentication Fix: Sudo Permission Denied in Ubuntu”. Please see How to switch users in Linux, How to Switch between Users in Linux, and How to Restrict Access to USB Drives.

What does Sudo mean?

Sudo means superuser do. The superuser account is the account with unrestricted permissions and privileges. Take a look at the following related posts on How to Create Symbolic Links in Linux, How to Install Terraform on Linux, How to install Apache Tomcat on Ubuntu, and How to fix “Failed to open session in VirtualBox to install Windows 11 Image”

From the screenshot below, we’re are trying to switch user (su) SU authentication to the root account so we can execute any command without a password prompt.

Secondly, since the su command failed, we also tried to become root by running the sudo -i command but we encountered the Permission denied prompt. Thirdly, we tried to run the installation of the aptitude command using the usual sudo apt install aptitude command, we still faced the Permission denied prompt.

Superuser Authentication
Su: Authentication Failure

One of the things to note in Linux, su, and sudo commands fails with an SU authentication failure and “Permission denied” since the root account is blocked by default in Ubuntu, and the root account doesn’t have a password that’s why whenever we try to execute any command we’re prompted for a password.

For best practice, it is not recommended to grant sudo permission to every user as doing so may pose danger to your system.

Let's get the issue fixed! Before fixing this, we will first look at the cause of the problem. 

Cause of the problem:

This problem usually occurs when you change the ownership of/usr/bin from root to an ordinary user or you have mistakenly granted both the owner, the group and others the full permission to read, write and execute (rwxrwxrwx) to the /usr/bin directory by running sudo chmod 777 /usr/bin/ or by granting the owner and the group the SU authentication same permission to read and write (chmod 770 /usr/bin) to the /usr/bin directory with sudo power.

By default the Root account in Linux OS doesn’t have password as mentioned earlier. So any attempt to alter the standard settings of the core filesystem will automatically disable all access to the sudo or root account until it is recovered.

With the incident described above, whenever you try to execute  any of the following commands: su root, sudo -i, $sudo chown root /usr/bin and chmod 4755 /usr/bin/sudo or any task that requires the superuser or root privileges to be executed, you will encounter the above error-, and even the (SU authentication) chmod: changing permissions of '/usr/bin/sudo': operation not permitted error as well.

You might be interested in this: Ubuntu Linux: Create Multiple Users with Passwords, and Folder Access Denied, you require permission from SYSTEM: Unable to delete old windows folder.

Solution for SU authentication

Step 1: Restart your PC. Boot into Ubuntu Recovery Console, and press and hold the SHIFT key while booting. It will take you to the grub loader page as shown in the screenshot below.

Root Access Authorization
Entering the Ubuntu Recovery Console

Sometimes getting into the grub loader menu using the SHIFT key could be a little bit tricky mostly when you’re running your SU authentication Ubuntu on VirtualBox or VMWare. So you need to start pressing the shift key immediately the VirtualBox screen displays.

Step 2: Select and enter Advanced options for Ubuntu, from there select the kernel named as recovery mode as shown in the screenshot below:

Admin Authentication
Recover Mode

Step 3: Select root – by dropping to the root shell prompt as shown in the screenshot SU authentication

Sudo Authentication
Root Kernel

Step 4: Now the file system is read-only. Remount to Read-Write by running the command below:

# mount -o remount,rw /

Now we need to mount –all

Mounting all requires us to change the ownership for sudo. To do so run the below command:

# chown root:root /usr/bin/sudo

Grant permission for sudo by running:

# chmod 4755 /usr/bin/sudo

Now, the deal is done and SU authentication should be back by now. Let’s restart the PC by running the below command.

# shutdown -r now

The summary of all the commands ran above is shown in the screenshot below. Note: you’re to go with the “Press Enter for Maintenance prompt“

Cammands-to-recover-your-OS

The outcome of SU authentication

After restarting our PC, we have the Sudo back and we can run the sudo-i command as well as run the aptitude command installation without the SU authentication Failure error prompt as shown in the screenshot below.

Root-account-Restored
Sudo Restored

That’s all..! I hope you found this blog post helpful on SU Authentication Fix: Sudo Permission Denied in Ubuntu. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux Tags:sudo, users

Post navigation

Previous Post: Create Multiple Users with Passwords in Ubuntu Linux
Next Post: How to use Postman for your POST Request

Related Posts

  • trip wire feature
    How to install and configure Tripwire on Ubuntu Linux
  • MV command in Linux
    Rename or Move Files or Directories in Linux with Bash Terminal Linux
  • Screenshot 2021 02 14 at 00.35.50
    How to manage automatic login on Ubuntu Linux Linux
  • fba7f screenshot 2019 04 15 at 18.33.30
    File System Overview: How to decide on the right File System to use for your USB Linux
  • parttt
    Adding a new partition to an existing Linux server Linux
  • Slide1 1
    Create Multiple Users with Passwords in Ubuntu Linux Linux

More Related Articles

trip wire feature How to install and configure Tripwire on Ubuntu Linux
MV command in Linux Rename or Move Files or Directories in Linux with Bash Terminal Linux
Screenshot 2021 02 14 at 00.35.50 How to manage automatic login on Ubuntu Linux Linux
fba7f screenshot 2019 04 15 at 18.33.30 File System Overview: How to decide on the right File System to use for your USB Linux
parttt Adding a new partition to an existing Linux server Linux
Slide1 1 Create Multiple Users with Passwords in Ubuntu Linux Linux

Comments (3) on “SU Authentication Fix: Sudo Permission Denied in Ubuntu”

  1. Avatar photo timitar says:
    17/11/2022 at 1:48 PM

    very nice

    Log in to Reply
  2. Avatar photo hot dog says:
    21/12/2022 at 4:36 PM

    thank you so much.

    Log in to Reply
  3. Avatar photo Kaennex says:
    10/01/2023 at 1:38 PM

    Thank you sir, it did help me and my mates a lot, it is well written so that it is easy to understand

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • How to Disable device encryption
    How to Disable device encryption on Windows Windows
  • Dockerxx1
    How to install and uninstall Docker Desktop on Windows 10 and Windows Server Containers
  • Local System Account
    How to Run a Program in Windows as the Local System Account Windows
  • what is saml e1690630549650
    What is SAML – Security Assertion Markup Language Windows Server
  • selinux in production
    How to locate directory file context and restore it with SELinux Linux
  • winSEARCH
    Hide or Remove Search Button from Windows 10 Taskbar Windows
  • Driver Automation Tool
    Windows Driver Management: Upgrade Driver Automation Tool Windows
  • vSwitches
    vSwitches: How to delete Virtual Switches from Hyper-V Virtualization

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.