* smbfs credentias
@ 2005-01-05 12:16 abo
2005-01-05 18:34 ` Jeff Moyer
0 siblings, 1 reply; 5+ messages in thread
From: abo @ 2005-01-05 12:16 UTC (permalink / raw)
To: autofs
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: smbfs credentias
2005-01-05 12:16 smbfs credentias abo
@ 2005-01-05 18:34 ` Jeff Moyer
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Moyer @ 2005-01-05 18:34 UTC (permalink / raw)
To: abo; +Cc: autofs
==> Regarding [autofs] smbfs credentias; abo <abo@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.
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: smbfs credentias
@ 2005-04-04 20:27 Craig Schreiner
2005-04-05 3:00 ` Ian Kent
2005-04-05 12:09 ` Greg Wooledge
0 siblings, 2 replies; 5+ messages in thread
From: Craig Schreiner @ 2005-04-04 20:27 UTC (permalink / raw)
To: autofs
> 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.
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: smbfs credentias
2005-04-04 20:27 Craig Schreiner
@ 2005-04-05 3:00 ` Ian Kent
2005-04-05 12:09 ` Greg Wooledge
1 sibling, 0 replies; 5+ messages in thread
From: Ian Kent @ 2005-04-05 3:00 UTC (permalink / raw)
To: Craig Schreiner; +Cc: autofs
On Tue, 4 Apr 2005, Craig Schreiner wrote:
> > 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.
> >
> > 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!
>
> 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?
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: smbfs credentias
2005-04-04 20:27 Craig Schreiner
2005-04-05 3:00 ` Ian Kent
@ 2005-04-05 12:09 ` Greg Wooledge
1 sibling, 0 replies; 5+ messages in thread
From: Greg Wooledge @ 2005-04-05 12:09 UTC (permalink / raw)
To: autofs
On Mon, Apr 04, 2005 at 08:27:00PM -0000, Craig Schreiner wrote:
> 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. ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-05 12:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-05 12:16 smbfs credentias abo
2005-01-05 18:34 ` Jeff Moyer
-- strict thread matches above, loose matches on Subject: below --
2005-04-04 20:27 Craig Schreiner
2005-04-05 3:00 ` Ian Kent
2005-04-05 12:09 ` Greg Wooledge
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.