1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 17:24:45 +00:00

Support one-click activation of touchid

This commit is contained in:
Tw93
2025-10-11 22:43:50 +08:00
parent 55f6bd352f
commit 7e42516260
3 changed files with 280 additions and 66 deletions

View File

@@ -51,6 +51,7 @@ mo clean --dry-run # Preview mode
mo clean --whitelist # Manage protected caches
mo uninstall # Uninstall apps
mo analyze # Disk analyzer
mo touchid # Configure Touch ID for sudo
mo update # Update Mole
mo remove # Remove Mole from system
mo --help # Show help
@@ -148,16 +149,7 @@ Total: 156.8GB
- **Can I protect specific caches?** Yes. Run `mo clean --whitelist` to select caches to protect.
- **Touch ID support?** Mole uses `sudo` for privileges, so you'll get a password prompt unless you've configured Touch ID for sudo.
```bash
sudo nano /etc/pam.d/sudo
# Add this line below the comments at the top:
auth sufficient pam_tid.so
# Save: Ctrl+O, then exit: Ctrl+X
```
- **Touch ID support?** Yes. Run `mo touchid` to enable Touch ID for sudo and avoid repeated password prompts. This is optional but recommended for better experience.
## Support