Skip to contentSkip to conversation

smbfs credentias

DISCUSSION abo 2 participants 2 messages Jan 5, 2005 Kernel automounter

lore
Share & tools
lore

abo

author
#0 lore raw

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

#1 lore raw

==> 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