Skip to main content
April 20, 2026
Question

1password cli as auth source for autofs

  • April 20, 2026
  • 0 replies
  • 18 views

Hi,

I have a setup where autofs is mounting CIFS network shares, and I'd like to avoid having the password in plaintext. For that purpose, I set up a named pipe, with a systemd process auto populating it with username, and password taken from `op`. This works, but given that `autofs` auto unmounts when the directory is not used – so I get reprompted a lot to authorize.

Is there a way to avoid this, or a better way to set this up?