Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2020 17:55:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 245704] sysutils/fusefs-smbnetfs script to mount using /etc/fstab
Message-ID:  <bug-245704-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245704

            Bug ID: 245704
           Summary: sysutils/fusefs-smbnetfs script to mount using
                    /etc/fstab
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dave+freebsd@fullard.ca
                CC: mi@ALDAN.algebra.com
                CC: mi@ALDAN.algebra.com
             Flags: maintainer-feedback?(mi@ALDAN.algebra.com)

Created attachment 213507
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D213507&action=
=3Dedit
mount script

I've written a short mount script for fusefs-smbnetfs to allow it to be used
from /etc/fstab.

I'd like (if possible) to get it added to the sysutils/fusefs-smbnetfs port=
 to
allow others to use.

I know in the traditional sense that smbnetfs is supposed to be run per-use=
r,
but this would allow all users and processes to be able to use SMB shares. =
It
does require configuration for fstab to be place in /.smb with the
smbnetfs.conf, smbnetfs.auth (not required) and a copy of smb.conf (not
required as defaults will be used). I've put this config in
/usr/local/etc/smbnetfs and created a symlink to /.smb. It's possible to use
the `-o config=3D/path/to/smbnetfs.conf`, but smbnetfs throws a warning abo=
ut not
being able to find smb.conf as it will be looking for it in $USER/.smb. May=
be
this is something smbnetfs can be patched to handle.

The attached script is placed into /usr/local/sbin/mount_smbnetfs.

The line to add to /etc/fstab to use the script would then be:

    smbnetfs        /smb            smbnetfs=20=20=20=20=20=20=20
rw,late,failok,allow_other,mountprog=3D/usr/local/sbin/mount_smbnetfs     0=
=20=20=20=20=20=20
0

This would then create /smb as a special mount, allowing all users to browse
SMB shares, for example:

    cd /smb/user:pass@host/share

If the smbnetfs.auth file is present and configured, then browsing to
/smb/host/share would work.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245704-7788>