LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2019, 04:48 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 505

Rep: Reputation: 37
samba error: init_smb_request: invalid wct number


I've got a centos 7 machine (samba client) that is trying to connect to a shared folder on a vps (centos 6 machine - samba server) but it keeps failing. The command I'm using on the centos 7 client machine is:
Quote:
# mount -t cifs -o username=user,password=password,uid=user,gid=user,sec=ntlm //<vps-ip-address>/share /media/vps
but I get:
Quote:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
This is the error in the vps centos 6 server log:
Quote:
Jun 3 09:27:10 vps smbd[28167]: [2019/06/03 09:27:10.013354, 0] smbd/process.c:525(init_smb_request)
Jun 3 09:27:10 vps smbd[28167]: init_smb_request: invalid wct number 117 (size 110).
the vps runs samba version samba-3.6.23-51.el6.x86_64.
the centos 7 machine runs samba-4.8.3-4.el7.x86_64.
Here is the smb.conf from the vps samba server:
Quote:
[global]
workgroup = workgroup
server string = Samba Server Version %v

netbios name = vps-server

interfaces = lo venet0:0 <vps-ip-address>
hosts allow = 127. <123.456.789.012> <centos7-public-ip-address>

log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam

load printers = No
cups options = raw

printcap name = /dev/null
disable spoolss = Yes

[share]
comment = share on vps
browseable = yes
writable = yes
valid users = <user>
path = /home/share
public = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
other machines I have can connect to the vps no problem, both windows 10 and centos 6 machines so the problem appears to be with centos 7 only. I've been trawling google but couldn't find a solution, maybe I have something missing in smb.conf, thanks for any advice.

Last edited by tonj; 06-03-2019 at 04:51 AM.
 
Old 06-03-2019, 05:08 AM   #2
tonj
Member
 
Registered: Sep 2008
Posts: 505

Original Poster
Rep: Reputation: 37
update: typical eh? 10 mins later I solved it. what did it was the centos 7 command, it just needed vers=1.0 adding:
# mount -t cifs -o vers=1.0 -o username=user,password=password,uid=user,gid=user,sec=ntlm //vps-server-ip-address/share /media/vps --verbose
and it connected

Last edited by tonj; 06-03-2019 at 05:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PHP + MYSQL: Invalid parameter number: number of bound variables does not match... OrangeGrover Linux - Software 6 05-08-2013 06:36 PM
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 03:48 AM
grub2 returns a "invalid magic number" error when booting slackware 13.0's kernel baji Slackware - Installation 4 03-09-2010 07:15 PM
Cannot find g-wrap-wct.h when compiling GNUCash falcon56215 Linux - Software 0 07-09-2007 11:27 PM
VMWare 5.5.1 serial number invalid error Tritan Slackware 0 08-02-2006 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration