Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2015 13:46:56 +0000 (UTC)
From:      "Helmut Schneider" <jumper99@gmx.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: 'mount_smbfs -o' on FreeBSD 10.1
Message-ID:  <xn0jm7pazbuwxyh000@news.gmane.org>
References:  <xn0jm6it6aqftyj000@news.gmane.org> <20150519102155.GA88695@ozzmosis.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
andrew clarke wrote:

> On Mon 2015-05-18 18:53:52 UTC+0000, Helmut Schneider
> (jumper99@gmx.de) wrote:
> 
> > I upgraded from 9.3 to 10.1 yesterday. I used to use a script that
> > mounts SMB shares and not fstab because 9.3 booted to single user
> > mode when the SMB server was unavailable.
> > 
> > It seems that with 10.1 mount_smbfs does not support the "-o" switch
> > anymore:
> 
> I think it does...
>  
> > [helmut@BSDHelmut ~]$ sudo mount_smbfs -o noexec,nosuid,noatime,ro
> > -N -I 192.168.124.251 -W DOMAIN //unix-smb-dummy@fs01/install
> > /var/www/var/www/smbfs/install
> > mount_smbfs: mount error: /var/www/var/www/smbfs/install Invalid
> > option [helmut@BSDHelmut ~]$ sudo mount_smbfs -N -I 192.168.124.251
> > -W DOMAIN //unix-smb-dummy@fs01/install
> > /var/www/var/www/smbfs/install [helmut@BSDHelmut ~]$
> > 
> > How can I pass those options with 10.1?
> 
> I suspect it's the "noatime" option that it's objecting to, although
> you wouldn't know from the error message. Try it without noatime.

Good point, and in addition options now have to be separated:

[helmut@BSDHelmut ~]$ sudo mount_smbfs -o noexec,nosuid,ro -N -I
192.168.124.251 -W DOMAIN //unix-smb-dummy@fs01/install
/var/www/var/www/smbfs/install
mount_smbfs: mount error: /var/www/var/www/smbfs/install Invalid option
[helmut@BSDHelmut ~]$

[helmut@BSDHelmut ~]$ sudo mount_smbfs -o noexec -o nosuid -o ro -N -I
192.168.124.251 -W DOMAIN //unix-smb-dummy@fs01/install
/var/www/var/www/smbfs/install
[helmut@BSDHelmut ~]$

> Also, fwiw, you can use mount -t instead. This works for me on 10.1:
> 
> $ sudo mount -t smbfs -o -U=ozzmosis -o noexec,nosuid,ro
> //server/share /mnt

afaik mount -t smbfs does not know about "-N" (don't ask for a
password).

Thanks, Helmut




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?xn0jm7pazbuwxyh000>