[Samba] problems with "net rpc shutdown" and smbclient after upgrade to samba 3.6.23
hfleming at moosebird.com
Mon Apr 18 13:25:05 UTC 2016
Since the upgrade to samba 3.6.23 (Centos 6.7) last week, smbclient and
"net rcp shutdown" are no longer working on my network.
A nightly a script runs that shuts down any workstations that have been
net rpc -I 192.168.1.63 SHUTDOWN -U username%password
net rpc -S workstation-name SHUTDOWN -U username%password
Before the update, this would shutdown the workstations without any
Now I get these errors:
Could not connect to server 192.168.1.63(or name)
Connection failed: NT_STATUS_ACCESS_DENIED
I also have another script that backs up quickbooks on an accounting
The script powers up the workstation, then runs:
/usr/bin/smbclient //192.168.1.105/qbdata -A /root/scripts/.qbsmbpw -Tc
Now I get this error for the above command:
session request to 192.168.1.105 failed (Called name not present)
session setup failed: NT_STATUS_LOGON_FAILURE
I have spent the last few days looking for a solution to the problem, so
far no luck.
In case this helps, Global section from smb.conf:
socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
workgroup = MEINW
server string = MEI Samba Server Version %v
log file = /var/log/samba/%m.log
max log size = 100
add user script = /usr/sbin/useradd "%u" -n -g users
delete user script = /usr/sbin/userdel "%u"
add group script = /usr/sbin/groupadd "%g"
delete group script = /usr/sbin/groupdel "%g"
delete user from group script = /usr/sbin/userdel "%u" "%g"
add machine script = /var/lib/samba/scripts/machineadd.sh "%u"
logon path =
logon drive = U:
domain logons = Yes
os level = 255
preferred master = Yes
domain master = Yes
cups options = raw
smb ports=139 445
server signing = mandatory
lanman auth = yes
ntlm auth = yes
raw NTLMv2 auth = yes
If there is any additional info needed, please let me know.
More information about the samba