The options field of
fstab is where you would need to store credentials or information pointing to credentials, and the
options property of the Mount resource is the one that serves for managing that. Details of how to record or refer to credentials via the mount options depend on remote filesystem type, OS version, and perhaps other considerations. You should really consult the documentation for your target environment, but there are
online docs for CIFS mounts that are likely to be quite close.
If those particular docs exactly describe the situation for your environment, then your alternatives involve the
user,
password, and
credentials mount options, and environment variables
USER and
PASSWD. The CIFS mount service also recognizes synonyms for some option names, including '
username' as a synonym for '
user'. Do read the appropriate docs for full details.
John