Disable Admin Password in Linux Mint - Full Guide - ANSNEW

Disable Admin Password in Linux Mint - Full Guide

Disable Admin Password in Linux Mint
Disable Admin Password in Linux Mint 

Disable Admin Password in Linux Mint (A–Z Guide)

This guide explains how to disable the admin (sudo) password prompts in Linux Mint, for both terminal commands and graphical (GUI) actions.

⚠️ WARNING: Disabling admin passwords lowers system security! Anyone with access can change system settings, install/remove software, or damage the system without restriction. Only do this if you fully understand the risks.

1️⃣ Allow sudo Without Password

  1. Open the terminal.
  2. Edit the sudoers file by running:
    sudo visudo
  3. Look for this line:
    %sudo   ALL=(ALL:ALL) ALL
    and change it to:
    %sudo   ALL=(ALL:ALL) NOPASSWD:ALL
    Alternatively, add this at the bottom (replace yourusername with your actual username):
    yourusername ALL=(ALL) NOPASSWD:ALL
  4. Save and exit:
    • If using nano, press Ctrl + O (then Enter), then Ctrl + X.

2️⃣ Disable Password for GUI Actions (polkit)

  1. Check if the directory exists:
    ls /etc/polkit-1/localauthority/
  2. If you don’t see 50-local.d, create it:
    sudo mkdir /etc/polkit-1/localauthority/50-local.d
  3. Create the policy file:
    sudo nano /etc/polkit-1/localauthority/50-local.d/disable-password.pkla
  4. Add the following content:
    [Disable password for admin]
    Identity=unix-group:sudo
    Action=*
    ResultActive=yes
  5. Save and exit (in nano: Ctrl + O, Enter, Ctrl + X).
  6. Reboot your system:
    sudo reboot

3️⃣ (Optional) Enable Automatic Login

  1. Go to Menu → Administration → Login Window.
  2. In the Users tab, select your user account.
  3. Enable Automatic Login.
  4. Reboot to apply.

✅ Summary

  • Sudo without password: Edit sudoers file.
  • GUI admin without password: Add a polkit rule in /etc/polkit-1/localauthority/50-local.d/.
  • Auto-login: Enable via Login Window settings.
⚠️ Important Reminder: Disabling admin passwords makes your system less secure. Only apply these changes if you’re sure you need them.

Download ANSNEW APP For Ads Free Expriences!
Yamin Hossain Shohan
Researcher, DevOps Engineer and Digital Content Creator

I’m a researcher, programmer, and content creator, combining tech and creativity to craft engaging stories and digital content.

Copyright Disclaimer

All the information is published in good faith and for general information purpose only. We does not make any warranties about the completeness, reliability and accuracy of this information. Any action you take upon the information you find on ansnew.com is strictly at your own risk. We will not be liable for any losses and/or damages in connection with the use of our website. Please read our complete disclaimer. And we do not hold any copyright over the article multimedia materials. All credit goes to the respective owner/creator of the pictures, audios and videos. We also accept no liability for any links to other URLs which appear on our website. If you are a copyright owner or an agent thereof, and you believe that any material available on our services infringes your copyrights, then you may submit a written copyright infringement notification using the contact details

(0) Comments on "Disable Admin Password in Linux Mint - Full Guide"

* Most comments will be posted if that are on-topic and not abusive
Back To Top