smbfs credentias
Quoted 20 lines
From: Jeff Moyer jmoyer at redhat.com
Date: Wed Jan 5 10:34:18 PST 2005==> Regarding [autofs] smbfs credentias; abo <abo at brujulatelecom.com> 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
Quoted 8 lines
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
Wow, I'm really surprised that there isn't some mechanism to support multiple users? While this credential mechanism might be okay for a test lab or a single user LAN, but what do people do in a business/enterprise environment?
Is there anyway to force the automounter to prompt for username and password?
Maybe I should ask, why is there no way of the automounter knowing which user is requesting a given mount? I mean no disrespect, but does anyone else think this is a design limiting security risk implementation when automounting smbfs types?
--z
Ian Kent
maintainerQuoted 22 lines · Craig Schreiner
Quoted 22 lines
From: Jeff Moyer jmoyer at redhat.com
Date: Wed Jan 5 10:34:18 PST 2005==> Regarding [autofs] smbfs credentias; abo <abo at brujulatelecom.com> 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.
Quoted 8 lines
Quoted 6 lines
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
Wow, I'm really surprised that there isn't some mechanism to support multiple users? While this credential mechanism might be okay for a test lab or a single user LAN, but what do people do in a business/enterprise environment?
Sticks and stones!
Quoted 2 lines
Is there anyway to force the automounter to prompt for username and password?
Since the daemon runs without a controling tty where would it prompt?
Quoted 2 lines
Maybe I should ask, why is there no way of the automounter knowing which user is requesting a given mount? I mean no disrespect, but does anyone else think this is a design limiting security risk implementation when automounting smbfs types?
The information that comes from the kernel does not include any process info.
One very difficult task is backward compatibilty.
If we change the size of the communication structure we send from the kernel to userspace every single previous version of autofs will not work any more. So we can't add the information.
We can change what autofs uses as a key for map entry lookups. To do this the kernel module needs to have a way of knowing what version the daemon can work with to ensure it sends the correct structure.
I've been thinking about how I can do this and may have a relatively simple solution.
Much of the work to support additional info in the structure has been done and will likely start to show up in 4.2.
These are just the first steps to fix this. It has been a problem for a long time.
Ian
Quoted 3 lines · Craig Schreiner
Wow, I'm really surprised that there isn't some mechanism to support multiple users? While this credential mechanism might be okay for a test lab or a single user LAN, but what do people do in a business/enterprise environment?
They use NFS instead of SMB. ;-)