I am trying to give one server access to a part of the file storage of another over the network. Both machines are in the same data center but in different networks. The networks are properly routed.
First I tried NFS but that turned out to be a pain and never truly worked. The only alternative I can think of is SMB. This turns out to be a pain as well on FreeBSD, as the
I have set up the Samba server correctly, which I verified by running
When I try to mount the share via
Here's the (extremely small) smb4.conf of the server:
Testing this from a Linux machine worked immediately. Any idea how to get this to work? Alternatively, I'm open to better solutions that work.
First I tried NFS but that turned out to be a pain and never truly worked. The only alternative I can think of is SMB. This turns out to be a pain as well on FreeBSD, as the
mount_smbfs
command appears to be severely limited in what it works with and if it works at all. I absolutely want to avoid FUSE extensions like sshfs because I've experienced unstable behavior in the past, including the shutdown of network interfaces when running it on FreeBSD.I have set up the Samba server correctly, which I verified by running
smbclient -U mirror -L localhost
on the host and smbclient -U mirror -L 1.2.3.4
on the client. I can log in and browse the respective share via smbclient -U mirror '\\\\1.2.3.4\pub'
.When I try to mount the share via
mount_smbfs -I 1.2.3.4 -U mirror //1.2.3.4/pub /mnt
, it first asks for a password and always immediately fails:
Code:
mount_smbfs: unable to open connection: syserr = Authentication error
Here's the (extremely small) smb4.conf of the server:
Code:
[global]
workgroup = WORKGROUP
security = user
[pub]
path = /pub
valid users = mirror
writable = yes
browsable = yes
read only = no
guest ok = no
public = no
create mask = 0666
directory mask = 0755
Testing this from a Linux machine worked immediately. Any idea how to get this to work? Alternatively, I'm open to better solutions that work.