All of lore.kernel.org
 help / color / mirror / Atom feed
* automounting smb share with options, and suggestion to use fstab entry for direct mounts without options and target
@ 2010-02-23 17:55 x
  2010-02-24  2:39 ` Ian Kent
  0 siblings, 1 reply; 3+ messages in thread
From: x @ 2010-02-23 17:55 UTC (permalink / raw)
  To: autofs

hi!

i've got two issues with autofs, first one:

i want to mount an smb share. i have to pass username/password as well as the server's ip as a mount option (plus uid, gid, and all other smb options should be generally accessible using autofs, too, i guess). the following doesn't work:

/srv/smb        -fstype=smbfs,ip=10.1.2.3,user=administrator,password=secret,uid=smbuser,gid=smbgroup   //10.1.2.3/C$/

a mount command with these options (replacing the "-" by "-o ") _does_ work.
the funny thing is that such a manual mount won't work using 10.1.2.3:/C$/ notation, obviously because that already makes mount think the fstype must be nfs.

what i already found out is that the //<server>/<share>/ notation seems to cause problems to automount. using 10.1.2.3:/C$/ seems not to cause the same problem as when using mount (automount seems to still understand the fs type is smb) but it still fails, so it seems to mess up the other options somehow.

now that leads me to the second issue:

the above fs is in the fstab and currently has to be mounted manually when needed. now having that done by automount would be nice. that's a simple direct mount, so the idea is to simply add to auto.master:

/-      /etc/auto.direct

and to add to /etc/auto.direct:

/srv/smb

now the options and target are missing - on purpose. what i mean/find most straightforward/find most intuitive, would be to have the possibility to just add the mountpoint to the direct mounts, so that automount will just mount the fs according to fstab (like when calling mount manually with the mountpoint as the only argument).
that would btw. also fix/work around the issue #1 :)

as i mentioned, to me this seems most intuitive. obviously - as that's not (the way it was) implemented, others don't. but maybe it's still regarded as a nice thing to have?

regards,

	Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-24 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23 17:55 automounting smb share with options, and suggestion to use fstab entry for direct mounts without options and target x
2010-02-24  2:39 ` Ian Kent
2010-02-24 15:22   ` x

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.