LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Linux to Windows SMBClient issue... (https://www.linuxquestions.org/questions/linux-desktop-74/linux-to-windows-smbclient-issue-4175520902/)

fuel451 10-02-2014 09:44 PM

Linux to Windows SMBClient issue...
 
Running RHEL 5.8 and copying data via smbclient to a Windows Server 2012 R2 file server. Unfortunately, I get the error...

Error writing file: ERRSRV - ERRerror (Non-specific error code.)

When I test from an RHEL 6.5 test server, it works fine. My first assumption is its either the older version of smbclient (Version 3.0.33-3.39.el5_8) on the RHEL 5.8 server, or the newer version on the Windows Server 2012 R2.

Question: There aren't a lot of blogs and articles related to this error. Is upgrading the smbclient on the Linux server the recommended solution, and if so, what is the highest recommended version supported?

rdmarsh 01-12-2016 06:12 PM

For anyone that comes along looking for a solution.

Samba version 3.0.33 can't copy files to a samba share on windows 2012. It produces zero byte files.

The solution is to remove samba 3.0.33 and upgrade to samba 3.6.33.

These are the steps I followed, no guarantee they work as I made these notes about a year ago.
  1. Perform backups to taste
  2. Make sure a cdrom source is enabled:
    Code:

    sudo vi /etc/yum.conf.d/*.repo
  3. Attach/Insert Centos 5.11 DVD to host
  4. Code:

    sudo service smb stop
  5. Code:

    sudo cp /etc/smb.conf /etc/smb.conf.`date --iso`
  6. Check for any samba users and act as needed:
    Code:

    sudo pdbedit -L -v
  7. Code:

    sudo mount /dev/cdrom /media/cdrom
  8. Code:

    sudo yum remove samba samba-common samba-client system-config-samba
  9. Code:

    sudo yum clean all
  10. Code:

    sudo yum install samba3x samba3x-common samba3x-winbind samba3x-client libtalloc libtdb
  11. Code:

    sudo cp /etc/smb.conf /etc/smb.conf.default
  12. Code:

    sudo cp /etc/smb.conf.`date --iso` /etc/smb.conf
  13. Code:

    sudo service smb start
  14. Code:

    sudo umount /media/cdrom
  15. Detach/Eject Centos DVD
  16. Test, Revert etc etc


All times are GMT -5. The time now is 07:49 AM.