type-less-passwords.sh 1.2 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh -e
  2. #Type less passwords
  3. # This file is part of PrawnOS (http://www.prawnos.com)
  4. # Copyright (c) 2020 G. Dallas Dye <gdallasdye@gmail.com>
  5. # PrawnOS is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License version 2
  7. # as published by the Free Software Foundation.
  8. # PrawnOS is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with PrawnOS. If not, see <https://www.gnu.org/licenses/>.
  14. #Use with caution. This script does not disable your login password.
  15. #Use this if you're concerned about your password being watched or listened to.
  16. #Or pair with autologin and hand off to family for panfrost testing :)
  17. #First backup the sudoers, then replace it with a known good example
  18. sudo cp /etc/sudoers /etc/sudoers.original
  19. sudo cp sudoers.nopasswd /etc/sudoers
  20. #Now disable password prompts in a graphical session
  21. sudo cp disable-passwords.pkla /var/lib/polkit-1/localauthority/50-local.d/disable-passwords.pkla