Article

Disable Admin Password in Linux Mint - Full Guide

TITLE: Disable Admin Password in Linux Mint: Simple Guide SEARCH DESCRIPTION: Learn how to disable admin password prompts in Linux Mint for sudo, GUI apps, and optional auto-login—with steps to undo changes safely. LABELS: Linux, Linux Mint, tutorial, sudo, system administration ---

This guide shows how to stop Linux Mint from asking for the admin password in three places: terminal (sudo), windows and apps (GUI), and optionally at login. Use these steps only on a private computer you trust.

Linux penguin icon for Linux Mint admin password guide
Disable Admin Password in Linux Mint
Important: Without passwords, anyone using your PC can change or break the system. Always use visudo for sudo changes so you do not lock yourself out.

Why People Remove These Passwords

  • Speed and comfort — fewer popups when installing apps, updates, or changing settings
  • Single user at home — only you use the PC
  • Scripts or automation — tasks run without manual password entry (still risky)
  • Accessibility — typing passwords often can be difficult for some users
  • Learning or testing — virtual machines or spare laptops where security is less important

Why You Should Not Remove Them

  • Shared or family PC — others could change or break the system
  • Laptop or portable PC — auto-login plus no admin checks makes abuse easier if lost or stolen
  • Malware — a password adds a step before system-wide changes
  • Work or school machines — often against policy; ask IT first
  • Remote access (SSH, RDP, TeamViewer) — an open session gets instant admin power
A middle ground: keep passwords on but reduce annoyance. Try longer sudo remember time (timestamp_timeout), disable only GUI or only terminal prompts, or use a strong login password with normal sudo.

Three Areas You Can Change

  • Terminal — edit sudo rules (Part 1)
  • GUI — add a system rule so apps do not ask (Part 2)
  • Login screen — optional auto-login (Part 3)

Part 1: Sudo Without Password

Replace yourusername with the output of whoami.

  1. Open Terminal.
  2. Run:
sudo visudo -f /etc/sudoers.d/nopasswd-me
  1. Paste this one line, save and close (in nano: Ctrl+O, Enter, Ctrl+X):
yourusername ALL=(ALL:ALL) NOPASSWD:ALL
  1. Test in a new terminal: sudo ls should not ask for a password.

Alternative: run sudo visudo, find %sudo ALL=(ALL:ALL) ALL, and change the last part to NOPASSWD:ALL. The separate file above is easier to undo.

Softer option: add Defaults timestamp_timeout=60 in visudo to remember sudo for 60 minutes instead of disabling the password.

Part 2: Fewer GUI Authentication Popups

Newer Mint (21+) often uses one folder; older Mint (20) uses another. Try method A first. If popups do not change after reboot, use method B.

Method A — Older Mint

sudo mkdir -p /etc/polkit-1/localauthority/50-local.d
sudo nano /etc/polkit-1/localauthority/50-local.d/disable-password.pkla

Paste, save, then reboot:

[Disable password for admin]
Identity=unix-group:sudo
Action=*
ResultActive=yes
sudo reboot

Method B — Newer Mint

sudo nano /etc/polkit-1/rules.d/49-nopasswd.rules

Paste, save, then reboot:

polkit.addRule(function(action, subject) {
    if (subject.isInGroup("sudo")) {
        return polkit.Result.YES;
    }
});
sudo reboot

Still asking? Run groups — your user should include sudo. Check for typos and try the other method.

Part 3: Optional Auto-Login

This only skips the login screen. It is separate from sudo and GUI rules.

  1. Open Menu → Administration → Login Window.
  2. Pick your user and turn on Automatic Login.
  3. Reboot.

If you use disk encryption, you may still type a password when the PC starts — that is normal.

Undo: Put Passwords Back

  • Sudo: sudo rm /etc/sudoers.d/nopasswd-me or delete the line you added in visudo
  • GUI: delete the .pkla or .rules file you created, then reboot
  • Auto login: turn it off in Login Window

If Something Breaks

  • Sudo errors: fix files from a Live USB or recovery mode; next time use only visudo
  • GUI rule not working: reboot, try method A vs B, check spelling in the file

Conclusion

Part 1 covers terminal sudo, Part 2 covers GUI apps, and Part 3 covers login. You can apply only one or two of them if you want partial convenience without removing every security check.

Download ANSNEW APP For Ads Free Experiences!
Yamin Hossain Shohan
Software Engineer, Researcher & Digital Creator

I'm a researcher, software engineer, and digital creator who uses technology and creativity to make useful tools and create interesting 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