LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-02-2014, 09:44 PM   #1
fuel451
LQ Newbie
 
Registered: Sep 2013
Posts: 14

Rep: Reputation: Disabled
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?
 
Old 01-12-2016, 06:12 PM   #2
rdmarsh
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Smbclient and Windows 7 cab00t Linux - Networking 3 11-12-2012 02:03 PM
Ubuntu Server 12.04 LTS and SmbClient/Samba Issue. Please Help Tweak17emon Linux - Server 0 05-10-2012 09:04 AM
Smbclient copy from Linux to windows depam Linux - Software 4 01-02-2010 04:01 PM
accessin windows shares from linux (smbclient) talkinggoat Linux - Networking 1 01-10-2004 11:28 PM
smbclient issue with AD bmckenz1 Linux - Networking 5 06-13-2003 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration