[Samba] Samba4 bug - "mount error(5): Input/output error"
steve
steve at steve-ss.com
Sun May 11 07:19:20 MDT 2014
On Sun, 2014-05-11 at 12:26 +0100, Rowland Penny wrote:
> On 11/05/14 10:00, Leander Schäfer wrote:
> > Hi Rowland,
> >
> > do you maybe have any idea what could potentially cause this bug?
> > smbclient thrwos me back a
> >
> > mount error(5): Input/output error
> >
> > when I try to mount the remote smbFS. It doesn't happen with my MacOSx
> > and Windows 7 as client but it happens with Linux OSs and with a
> > Konica Minolta copy machine with a scanner to samba function. The
> > first try to mount fails with the above error. The second try will be
> > a success right away without any errors. I don't understand what
> > causes this behaviour?! I thought you may have an idea?
> > Thank you
> >
> >
> >
> > Samba Server is Version 4.1.7 and it's running on a FreeBSD 10.0
> > RELEASE (fresh installation)
> > Samba client (eg. on Linux) is Version 3.5.4-0.83.el5_7.2
> > mount cmd on (eg. Linux is):
> >
> > mount -t cifs //10.0.0.200/MYSHARE -o
> > username="${SMB_USR}",password="${SMB_PWD}",sec=ntlmv2 /mnt/MyShare
> >
> > Below is my config, if useful:
> >
> > cat << EOF > /usr/local/etc/smb4.conf
> > # ================================== #
> > # Samba4 - FileServer #
> > # ================================== #
> >
> >
> > # ============= Global ============= #
> >
> > [global]
> >
> > # Basic server settings
> > workgroup = $( echo ${DOMAINNAME^^} | awk -F'.' '{print $1}' )
> > realm = ${DOMAINNAME^^}
> > netbios name = ${SERVERNAME^^}
> >
> > # Password backend
> > passdb backend = tdbsam
> >
> > # Logging
> > log level = 4
> > #log level = auth:3
> > max log size = 0
> >
> > # NTLMv2
> > ntlm auth = No
> > lanman auth = No
> > client ntlmv2 auth = Yes
> >
> > # Printing
> > load printers = No
> > printing = BSD
> > printcap name = /dev/null
> >
> > # Default masks
> > unix extensions = No
> > create mask = 0777
> > force create mode = 0777
> > directory mask = 0777
> > force directory mode = 0777
> >
> > # Miscellaneous
> > veto oplock files = /*.doc/*.xls/*.ppt/*.mdb/*.docx/*.xlsx/*.ppt
> > veto files =
> > /.snap/.windows/.zfs/Thumbs.db/.DS_Store/._.DS_Store/.apdisk/.TemporaryItems/
> > wide links = No
> >
> >
> > # ============= Shares ============= #
> >
> > [...]
> >
> > [MyShare]
> > comment = MyShare - Storage
> > path = /mnt/MyShare
> > guest ok = No
> > read only = No
> > valid users = myuser, leander, patrick
> > force user = myuser
> > vfs objects = recycle, zfsacl, streams_xattr
> > nfs4:mode = special
> > nfs4:acedup = merge
> > nfs4:chown = yes
> > zfsacl:acesort = dontcare
> > recycle:repository = /mnt/vMachines/.Trashes
> > recycle:directory_mode = 0777
> > recycle:keeptree = Yes
> > recycle:versions = Yes
> > recycle:touch = Yes
> > recycle:touch_mtime = No
> > recycle:exclude = ?~$*,~$*,._*,.smbdelete*
> >
> > [...]
> > EOF
> > chmod 0644 /usr/local/etc/smb4.conf
> > chown root:wheel /usr/local/etc/smb4.conf
> >
> >
> > Kind regards,
> > Leander
> Hi, have you tried using 'sec=krb5' instead ? I am not really an expert
> here, Steve knows far more about this than me, so perhaps he will chime
> in with some advise.
>
> Rowland
Hi
No, sorry. No client smb.conf, don't know whether client is joined to
the domain, maybe the linux client that is mentioned is a Linux client
that is not joined to the domain and that it is a NT domain. What is the
rôle of, 'Samba Server is Version 4.1.7', is this the DC or is this the
file server where we do have the smb4.conf? smb4.conf? I don't think we
have kerberos anywhere, do we? Is this an AD domain? needinfo.
More information about the samba
mailing list