smbfs credentias
hi!
im trying to mount smbfs resources from an ldap
if i put in nisMapEntry this
-fstype=smbfs,credentials=/home/abo/smb.creds
everything is working right. then i want to do it per user but variable substitution doesn't work, i tried:
-fstype=smbfs,credentials=/home/$USER/smb.creds
-fstype=smbfs,credentials=/home/${USER}/smb.creds
-fstype=smbfs,credentials=~/smb.creds
but no succes.
how can i get per user credentiasl? im on the wrong direction?
thx
abo
==> Regarding [autofs] smbfs credentias; abo <[email protected]> adds:
abo> hi! im trying to mount smbfs resources from an ldap
abo> if i put in nisMapEntry this
abo> -fstype=smbfs,credentials=/home/abo/smb.creds
abo> everything is working right. then i want to do it per user but abo> variable substitution doesn't work, i tried:
abo> -fstype=smbfs,credentials=/home/$USER/smb.creds
abo> -fstype=smbfs,credentials=/home/${USER}/smb.creds
abo> -fstype=smbfs,credentials=~/smb.creds
abo> but no succes.
abo> how can i get per user credentiasl? im on the wrong direction?
The automounter runs as user root. It has no way of knowing which user requested a given mount.
-Jeff