Hello,
My goal is simple. I just want to share a folder, so that other people can connect, read from it and write to it.
I’ve been strunggling with this for ages, following random internet tutorials, trying things etc. with little success. Now I’d like to find the ‘correct’ way. I’ve deleted /etc/samba/smb.conf to start fresh.
Here’s what I did (in the last attempt):
- delete /etc/samba/smb.conf
- start Yast/Samba Server
- entered WORKGROUP as the domain name
- selected No domain controller
- checked “allow users to share their directories” and “allow guest access”. See the first picture (sorry for the language, starting yast with “LANG=en yast2” started it in Czech (why on earth does not it respect LANG?))
- clicked OK
- entered samba root password as prompted
- in Dolphin, I’ve selected the folder, opened the properties and enabled sharing with Samba, see the second picture.
- if I open it again, my settings are lost, see the third picture.
There is only ‘netlogon’ share available on my Samba server that requires authentication.
What shall I do to share a folder?
It would be great if it didn’t require any messing with config files. It is very embarassing when I come to a pub, ask a friend to copy some files to my laptop and then spend an hour in the CLI…
http://tadeas-moravec.yc.cz/samba1.png
http://tadeas-moravec.yc.cz/samba2.png
http://tadeas-moravec.yc.cz/samba3.png
So you need the smb.conf file if if you want to use Samba. If you want to share between to Linux computers, you can just use nsf. For Samba help, why not look at these blogs on the subject?
Samba S.W.A.T. - Samba Web Administration Tool Setup for openSUSE - Blogs - openSUSE Forums
SWAT - Samba Web Administration Tool - Setup & Creation Script - 1.03 - Blogs - openSUSE Forums
Thank You,
Thank you jdmcdaniel3 for your post and for the links. I hoped that there is some ‘easy’ way that I’ve just missed, like three clicks or something
.
I see that I’ll have to edit smb.conf by hand in the end. That should be pretty simple, it’s just a single share. The problem is that it never worked, the guest was always given ‘permission denied’ error on write. See below for my current attempt of smb.conf.
Second, what about the Dolphin issue? Is there a reason for this behavoiur, or shall I file a bug report (though I’d be surprised that nobody noticed this yet)?
smb.conf:
User ‘tadeas’ is my regular user as well as existing smbuser (added with ‘smbpasswd tadeas -a’).
[global]
map to guest = tadeas
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
usershare allow guests = Yes
usershare max shares = 100
workgroup = WORKGROUP
passdb backend = smbpasswd
wins support = No
## Share disabled by YaST
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# write list = root
[shared]
browseable = Yes
comment = shared
guest ok = Yes
path = /srv/smb
read only = No
writeable = Yes
create mask = 0644
directory mask = 0775
guest account = tadeas
force user = tadeas
guest only = Yes
Ah! Got it! It really is dead simple. Just Dolphin is buggy.
It works as expected, just right click the folder and select sharing. However I need the permission on all contents of the folder and it’s subfolders - and I didn’t have them. The folder is OK, it was mine with 777, but there was a file somewhere deep inside that didn’t belong to me.
Sharing the folder as root was fine. Nautilus showed a ‘permission denied’ error, but Dolphin just silently failed, instead of informing the user that something’s wrong.
Shall I fill a bug report? 
Hello, have you started both services? smb and nmb? , could you please provide me some logs from both services. So far I can see that the first line is unnecesary “map to guest = tadeas” as you are using “security = user” . From a console type:
smbclient -NL YourIPhere
and post the output here too, ty.
[Added]Didn’t see your reply, I’m glad you sorted it out.