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
  • sql 1
    Editions of MSSQL Server: What are the differences between various Editions of Microsoft SQL Server Oracle/MSSQL/MySQL
  • image 42
    How to Install and Setup WordPress into a cPanel and Configure Your First WordPress Theme Configuration Management Tool
  • dfggg
    SimpleSAMLphp Setup on Windows Server [Part 1] Windows Server
  • defdfd
    The password has expired, update your password and try again AWS/Azure/OpenShift
  • Git not Recognized Image banner
    Fix Git is not recognised as an internal or external command Version Control System
  • Veeam
    Failed to connect to Veeam Backup and Replication server: Remote Channel Sink UriNotPublished, remote connection refused, and failed to start the service Backup
  • How to upgrade Trellix ePolicy Orchestrator
    How to upgrade Trellix ePolicy Orchestrator Security | Vulnerability Scans and Assessment
  • zoominstallanduninstall
    How to uninstall, reinstall, and update Zoom on Mac JIRA|Confluence|Apps

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.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • 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

  • Screenshot 2020 05 14 at 17.46.59
    Linux System Update: Upgrade vs. Dist-upgrade Differences Linux
  • Run Linux on Windows Server
    How to install Windows Subsystem for Linux on Windows Server Linux
  • linux windows 10
    Windows Subsystem for Linux: How to install WSL on Windows 10 Linux
  • fallocate
    What the Fallocate command does Linux
  • Linux basic commands Linux
  • linux tux minimalism 4k 42 2560x1700 1 1
    Warning useradd: the home directory already exists. Not copying any file from skel director into it Linux

More Related Articles

Screenshot 2020 05 14 at 17.46.59 Linux System Update: Upgrade vs. Dist-upgrade Differences Linux
Run Linux on Windows Server How to install Windows Subsystem for Linux on Windows Server Linux
linux windows 10 Windows Subsystem for Linux: How to install WSL on Windows 10 Linux
fallocate What the Fallocate command does Linux
Linux basic commands Linux
linux tux minimalism 4k 42 2560x1700 1 1 Warning useradd: the home directory already exists. Not copying any file from skel director into it 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

  • sql 1
    Editions of MSSQL Server: What are the differences between various Editions of Microsoft SQL Server Oracle/MSSQL/MySQL
  • image 42
    How to Install and Setup WordPress into a cPanel and Configure Your First WordPress Theme Configuration Management Tool
  • dfggg
    SimpleSAMLphp Setup on Windows Server [Part 1] Windows Server
  • defdfd
    The password has expired, update your password and try again AWS/Azure/OpenShift
  • Git not Recognized Image banner
    Fix Git is not recognised as an internal or external command Version Control System
  • Veeam
    Failed to connect to Veeam Backup and Replication server: Remote Channel Sink UriNotPublished, remote connection refused, and failed to start the service Backup
  • How to upgrade Trellix ePolicy Orchestrator
    How to upgrade Trellix ePolicy Orchestrator Security | Vulnerability Scans and Assessment
  • zoominstallanduninstall
    How to uninstall, reinstall, and update Zoom on Mac JIRA|Confluence|Apps

Subscribe to Blog via Email

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

Join 1,832 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.