Discussion:
multiuser mount without initial mount credentials
Orion Poplawski
2013-11-13 23:14:44 UTC
Permalink
Is there any possibility of removing the requirement to have an initial set of
credentials when mounting a cifs filesystem as multiuser? I'd like to have an
automount driven multiuser configuration without the need to have a separate
set of credentials just for mounting. Could we imaging some way for the
automount process to access a keyring stored credential for use in mounting?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion-***@public.gmane.org
Boulder, CO 80301 http://www.nwra.com
Jeff Layton
2013-11-14 13:14:07 UTC
Permalink
On Wed, 13 Nov 2013 16:14:44 -0700
Post by Orion Poplawski
Is there any possibility of removing the requirement to have an initial set of
credentials when mounting a cifs filesystem as multiuser? I'd like to have an
automount driven multiuser configuration without the need to have a separate
set of credentials just for mounting. Could we imaging some way for the
automount process to access a keyring stored credential for use in mounting?
One possibility would be to teach the kernel how to use an anonymous
logon (equivalent to what we do with sec=none) for the initial mount.
That would take a bit of reengineering but it's possible.

Also, if you pass credentials to the mount command then those
credentials will just be used for root access. e.g. something like this:

sec=ntlmssp,username=foo,password=bar,multiuser

You probably don't want to put that in a mount command, but you could
use a credentials file (see mount.cifs(8)).
--
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
Loading...