Samba - Old Trendnet Router Share

Issues related to applications and software problems
Post Reply
Posts: 6
Joined: 2015/07/21 13:58:05

Samba - Old Trendnet Router Share

Post by penguinpages » 2019/02/12 05:31:29

I have two servers. Trying to build out VM / container cluster.. but glusterfs needs a third arbiter volume.

I was planning on using my SMB share on the TEW-828DRU

Windows 10 workstation the shares work fine:
PS C:\> net use
New connections will be remembered.

Status Local Remote Network

OK W: \\\usb_A1 Microsoft Windows Network
OK X: \\\usb_A2 Microsoft Windows Network
The command completed successfully.

PS C:\>

But I can't get the CentOS 7 (fully updated) client to connect to save my life. I am hoping it is too many coffee cups and I am missing something stupid.

I read various forums about adding samba services with smb user same name.. using version specifics when connecting. And still not working..

What I tried:
yum install smb smbclient -y
vi /etc/samba/smb.conf
workgroup = SAMBA
security = user
client use spnego = no
client ntlmv2 auth = no
passdb backend = tdbsam

printing = cups
printcap name = cups
load printers = yes
cups options = raw

comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes

comment = Data for VM and Containers
path = /data
valid users = %S, %D%w%S
browseable = Yes
read only = No
inherit acls = Yes
systemctl start smb.service
systemctl enable smb.service
smbclient -L -U cluster -m SMB2
smbtree -d3

# create login for mount on boot
vi /etc/samba/user
smbpasswd -a cluster
New SMB password:
Retype new SMB password:
Added user cluster.

chmod 0400 /etc/samba/user
echo "//sw2.penguinpages.local/usb_A1 /media/sw2_usb_A1 cifs credentials=/etc/samba/user,noexec 0 0" >> /etc/fstab
mount -a
[root@thor ~]# smbclient -L -U cluster
Enter SAMBA\cluster's password:

Sharename Type Comment
--------- ---- -------
print$ Disk
usb_A1 Disk
usb_A2 Disk
Reconnecting with SMB1 for workgroup listing.

Server Comment
--------- -------

Workgroup Master
--------- -------

[root@thor ~]# smbclient // -U cluster
Enter SAMBA\cluster's password:
Try "help" to get a list of possible commands.
smb: \>
smb: \> dir
. DH 4096 Wed Jan 1 23:36:24 2014
.. DH 0 Mon Dec 31 11:00:00 1979
$RECYCLE.BIN D 0 Fri Nov 18 14:22:40 2016
forked-daapd.log A 157 Wed Jan 1 23:36:24 2014
iTunes D 4096 Wed Jan 1 06:09:07 2014
songs3.db A 38912 Wed Jan 1 23:36:24 2014
System Volume Information D 0 Sat Nov 19 01:50:26 2016
video D 4096 Sun Nov 20 10:18:06 2016
smb: \>q
mount -t cifs // /media/sw2_usb_A1
Password for root@// ********
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Post Reply