Can Linux read an encoded credentials file for Samba mount?
by tap2019 from LinuxQuestions.org on (#5AXT4)
I have an entry in /etc/fstab which mounts a samba share in /mnt. The credentials are stored in a text file in plain.
The entry in /etc/fstab is:
//10.1.2.3/smb-share /mnt/smb-share cif credentials=/home/user/credentials,vers=3.0 0 0
The content of the credentials file is in plain
user=admin
password=PW
domain=DOM
Is there a way to pass a Samba mount credentials file in non-plain to /etc/fstab?


The entry in /etc/fstab is:
//10.1.2.3/smb-share /mnt/smb-share cif credentials=/home/user/credentials,vers=3.0 0 0
The content of the credentials file is in plain
user=admin
password=PW
domain=DOM
Is there a way to pass a Samba mount credentials file in non-plain to /etc/fstab?