Article 5AXT4 Can Linux read an encoded credentials file for Samba mount?

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?latest?d=yIl2AUoC8zA latest?i=eArov6gk9ds:FptyAtS8qsU:F7zBnMy latest?i=eArov6gk9ds:FptyAtS8qsU:V_sGLiP latest?d=qj6IDK7rITs latest?i=eArov6gk9ds:FptyAtS8qsU:gIN9vFweArov6gk9ds
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments