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.
![]() |
| 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.
- Open Terminal.
- Run:
sudo visudo -f /etc/sudoers.d/nopasswd-me
- Paste this one line, save and close (in nano: Ctrl+O, Enter, Ctrl+X):
yourusername ALL=(ALL:ALL) NOPASSWD:ALL
- Test in a new terminal:
sudo lsshould 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.
- Open Menu → Administration → Login Window.
- Pick your user and turn on Automatic Login.
- 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-meor delete the line you added invisudo - GUI: delete the
.pklaor.rulesfile 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.


(0) Comments on "Disable Admin Password in Linux Mint - Full Guide"
* Most comments will be posted if that are on-topic and not abusive