How could I pass credentials to the automountd daemon through it's map files?
Tried credentials=/some/file.txt - Didn't work.
Tried SHARE.domain.com/user/pass/SHARE_NAME in map file - Didn't work
Tried user=USER,pass=PASS - Didn't work.
I can see the mounts created but when I access them all I get is permission denied (So issue looks to be with credentials):
# cd /mounttest/nas
ksh: /mounttest/nasd: permission denied
#
This is AIX 7.1. For Linux this might work with credentials but I'm wondering if AIX even supports automounting while using credentials. Moreover, /etc/cifs_fs/cifscred isn't read but manually mounting, everything works fine.
No. I'm trying to change directory into /mounttest/nasd at which point I get the permission denied. Should read as follows:
# cd /mounttest/nasd
ksh: /mounttest/nasd: permission denied
#
When I mount individually using mkcifsmnt that works fine and uses the credentials from /etc/cifs_fs/cifscred. But not when automounting. Automounter works fine on NFS shares that do not have any credentials but not on CIFS where credentials are needed. Trying to get this to work with CIFS.
Just to clarify, when I say automounter I mean the automountd daemon to do so on access and NOT to automount at startup (That's different and works fine).