JJJ's Blog

  • WordPress
  • GitHub
  • Twitter/X
  • Persistent Touch ID for sudo on macOS

    Did you know you can activate Touch ID (or some other biometric) support to authenticate sudo commands on your command line, in a way that survives operating system updates?

    All you need to do is copy & modify a single file:

    cd /etc/pam.d
    sudo cp sudo_local.template sudo_local
    sudo nano sudo_local

    And it should look like this when you are done:

    # sudo_local: local config file which survives system update and is included for sudo
    # uncomment following line to enable Touch ID for sudo
    auth       sufficient     pam_tid.so

    The way I see it, manually typing passwords isn’t just annoying; it’s an error-prone attack vector for key-logging and yet-another-barrier to productivity. To make software more secure, the best security stuff needs to be the most convenient option by default; this is one-of-many small steps towards that.

    JJJ

    January 14, 2024
    macOS, Security
  • Install Java & Netbeans on macOS via Homebrew

    brew install java
    sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
    echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc
    echo 'export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"' >> ~/.zshrc
    brew install netbeans

    JJJ

    August 24, 2023
    Netbeans, Apple, macOS
    macOS

Proudly Powered by WordPress