Sample Header Ad - 728x90

Using 'pass' passwordmanager within fstab

2 votes
0 answers
248 views
I have a NAS I want to mount on access. I can do this by adding //xxx.xxx.xxx.xxx/directory /mountpoint smb3 x-systemd.automount,credentials=home/user/.smbcredentials 0 0 to my fstab. I also want to centralize my passwords using pass passwordmanager. No problem, I can do: mount -t smb3 //xxx.xxx.xxx.xxx/directory /mountpoint -o username=user,password=pass home/localnetwork If the GPG-key passphrase is not cached yet, it will promt me to enter it, otherwise it will mount the directory immediatly. This is nice. Now I want to do this using fstab, however: //xxx.xxx.xxx.xxx/directory /mountpoint smb3 x-systemd.automount,username=user,password=pass home/localnetwork 0 0 Does not work. Any proper (or hacky) idea how to achive the intended behavior? Edit: I am runnig manjaro with Linux 6.1 kernel.
Asked by grbll (35 rep)
Aug 6, 2023, 10:58 AM
Last activity: Aug 6, 2023, 01:36 PM