Is there a way to set up simple shares in the Samba Server Gui in the 13.1 distro. It never seems easy but I did get it set up in 12.2 after about an hour and a half but 13.1 it doesn’t seem to work. I looked online and couldn’t find any documentation. Ubuntu and Debian take 5 minutes to set up and work perfectly. I tried just modifying the smb.conf but no joy. I checked smb and nmb services and also allowed Samba Server, Samba client and netbios through firewall and get nothing. Is this a bug? TIA.
Well I finally figured this out after about 6 hours of trial and error and lots of Google. There were a few things I needed to do:
- For some reason the install automatically selects ipv6 in the network settings. To me this is ridiculous, but easily fixed:
Yast>Network Devices>Network Settings
Under IPv6 Protocol Settings uncheck Enable IPv6.
- in your smb.conf file add the following line under workgroup name:
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
- Samba Server config
Under “Shares”
Make sure “Allow Users to Share Their Directories” and “Allow Guest Access” are checked
Under “Identity”
Domain Controller - Not a DC
WINS = WINS Server Support
Check “Retrieve WINS server via DHCP”
- Firewall Settings
Under “Allowed Services”
Allowed Services for Selected Zone - External Zone
“Service to Allow” - DHCPv4 Server
then allow the following:
Netbios Server
Samba Client
Samba Server
finish with the following"
systemctl enable smb.service
systemctl enable nmb.service
now shares are accessible
Could you please post the contents of the [global] stanza of smb.conf, for interest?
Here it is:
samba-doc package is installed.
[global]
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
usershare max shares = 100
wins support = Yes
idmap gid = 10000-20000
idmap uid = 10000-20000
security = user
local master = Yes
os level = 65
preferred master = Yes
include = /etc/samba/dhcp.conf
Did anyone succeed in configuring Samba with openSUSE 42.1 in a simple folder sharing scenario with password protection?
I placed this into /etc/samba/smb.conf for a public folder without password protection:
[public]
comment = Public files
path = /home/user1/public
read only = yes
public = yes
which is working fine.
But I also would like to share a readonly folder and protect it with username and password
[data1]
#inherit acls = Yes # does it help?
valid users = user1
path = /home/user1/data1
read only = Yes
guest ok = No
I did not forget to run $ smbpasswd -Le user1.
Any idea how to configure or debug it? Currently I enter “smb://user1@localhost/data1” into dolphin to test the connection and I am repeatedly prompted for username and password which are apparently not accepted. Is there a better way to debug the configuration?
Hi
Please start a new thread with your issue (Not just change the subject and tack onto a two year old thread!) and link to the thread as a reference if required.
Thread closed.