Hi all,
I have been a TrueNAS Core user for about 5 years, and I am now trying to slowly convert my NAS to FreeBSD instead. I set up a FreeBSD VM in my homelab as an experimental ground for learning how to configure similar services. The first one I am tackling is samba, and it sure is proving to be more difficult than I expected.
Here is the /usr/local/etc/smb4.conf file on FreeBSD:
Problem 1:
I can connect to this server from two linux hosts, debian and arch linux, and mount the share on those hosts with the following command:
This works as expected and the contents of testsmb folder on the linux hosts have correct permissions for the local users, both with uid of 1000. However, although everything looks as expected, these same users cannot write in this folder. They cannot create a file, or write in the existing files, although
Problem 2:
This one is a bit more complicated. I can browse a TrueNAS samba share using the file manager Dolphin on either of these linux hosts using a location notation as follows:
Typing this on dolphin “address bar” and hitting enter will bring a dialog box prompting for username and password. When those entered correctly, the contents of the share become visible in Dolphin. This doesn't work with the FreeBSD samba share. The username/password dialog does not appear, and the server times out eventually. Entering the address like
Here is my /etc/rc.conf file:
Any pointers will be greatly appreciated. I am more than happy to provide more details as needed. Please be gentle with me and excuse my ignorance.
I have been a TrueNAS Core user for about 5 years, and I am now trying to slowly convert my NAS to FreeBSD instead. I set up a FreeBSD VM in my homelab as an experimental ground for learning how to configure similar services. The first one I am tackling is samba, and it sure is proving to be more difficult than I expected.
Here is the /usr/local/etc/smb4.conf file on FreeBSD:
Code:
[global]
workgroup = HOME
server string = Samba Server Version %v
netbios name = testbsd
wins support = Yes
security = user
passdb backend = tdbsam
nsupdate command = /usr/local/bin/samba-nsupdate -g
server role = standalone server
[share]
path = /zroot/smbshare
valid users = toco
writable = yes
browsable = yes
read only = no
guest ok = no
public = no
force user = toco
force group = toco
#create mask = 0666
#directory mask = 0755
Problem 1:
I can connect to this server from two linux hosts, debian and arch linux, and mount the share on those hosts with the following command:
sudo mount -t cifs //192.168.1.163/share testsmb/ -o username=toco,uid=1000,gid=1000
This works as expected and the contents of testsmb folder on the linux hosts have correct permissions for the local users, both with uid of 1000. However, although everything looks as expected, these same users cannot write in this folder. They cannot create a file, or write in the existing files, although
ls -alh
shows correct permissions for them. What am I missing?Problem 2:
This one is a bit more complicated. I can browse a TrueNAS samba share using the file manager Dolphin on either of these linux hosts using a location notation as follows:
smb://192.168.1.163/share
Typing this on dolphin “address bar” and hitting enter will bring a dialog box prompting for username and password. When those entered correctly, the contents of the share become visible in Dolphin. This doesn't work with the FreeBSD samba share. The username/password dialog does not appear, and the server times out eventually. Entering the address like
smb://toco@192.168.1.163/share
does not help either, and results in the same outcome.Here is my /etc/rc.conf file:
Code:
hostname="testbsd"
ifconfig_vtnet0="inet 192.168.1.163 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"
dbus_enable="YES"
avahi_daemon_enable="YES"
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_enable="YES"
samba_server_enable="YES"
Any pointers will be greatly appreciated. I am more than happy to provide more details as needed. Please be gentle with me and excuse my ignorance.