From: x@muc.ccc.de
To: autofs@linux.kernel.org
Subject: automounting smb share with options, and suggestion to use fstab entry for direct mounts without options and target
Date: Tue, 23 Feb 2010 18:55:55 +0100 [thread overview]
Message-ID: <4B8416AB.4090207@muc.ccc.de> (raw)
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
next reply other threads:[~2010-02-23 17:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-23 17:55 x [this message]
2010-02-24 2:39 ` automounting smb share with options, and suggestion to use fstab entry for direct mounts without options and target Ian Kent
2010-02-24 15:22 ` x
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B8416AB.4090207@muc.ccc.de \
--to=x@muc.ccc.de \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.