User Tools

Site Tools


osx:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
osx:start [2022/03/30 14:22]
robm [Change URL and file-type/MIME default handlers]
osx:start [2022/04/21 13:36]
robm [Use TouchID for sudo] Add pam_reattach.so, so I can use touchid from sudo without changing the commands called
Line 712: Line 712:
 session    required       pam_permit.so session    required       pam_permit.so
 </code> </code>
- 
 These appear to be tried in the order listed, and if one aborts (e.g. press ESC for TouchID) the next is tried (i.e. the usual terminal password prompt) These appear to be tried in the order listed, and if one aborts (e.g. press ESC for TouchID) the next is tried (i.e. the usual terminal password prompt)
  
 +
 +To make this work from within ''tmux'' sessions, you can install another PAM module: ''pam_reattach.so'': https://github.com/fabianishere/pam_reattach
 +
 +Install by first running:
 +
 +<code>
 +brew install pam-reattach
 +</code>
 +
 +and then modifying ''/etc/pam.d/sudo'' to add it before ''pam_tid.so'':
 +
 +<code>
 +# sudo: auth account password session
 +auth       optional       pam_reattach.so
 +auth       sufficient     pam_tid.so
 +auth       sufficient     pam_smartcard.so
 +auth       required       pam_opendirectory.so
 +account    required       pam_permit.so
 +password   required       pam_deny.so
 +session    required       pam_permit.so
 +</code>
 ====== Automatic fan control when on AC power to avoid sweaty palms ====== ====== Automatic fan control when on AC power to avoid sweaty palms ======
  
osx/start.txt · Last modified: 2022/05/13 13:19 by robm