NOTE: I have read probably up to 50 different pages describing how to setup public Samba share in the span of 2 YEARS and nothing ever worked for me. I don't know how much RTFM I need to set this stuff.
I need/want to setup a completely open public file share on my home server for two workstations.
Setup is as follows:
Server:
- Debian Wheezy
sudo smbd --version
gives meVersion 3.6.6
.- 2 local partitions which I want to share, formatted in NTFS due to being old and taken from Windows machine. I cannot format them to ext* FS because they have a lot of data I cannot (yet) move anywhere else.
- machine named "homeserv" for lack of originality.
Client:
- Debian Testing (Jessie)
- Windows 7 (2 different machines). In fact, my machine is Debian/Windows dualboot, and my wife's machine is Windows only.
My smb.conf after distillation looks as follows (verbatim, nothing else is there):
[global]
workgroup = WORKGROUP
security = user
map to guest = Bad User
[disk1]
comment = Disk 1 on 400GB HDD
path = /media/disk1
browsable = yes
guest ok = yes
read only = no
create mask = 0755
[disk2]
comment = Disk 2 on 400GB HDD
path = /media/disk2
browsable = yes
guest ok = yes
read only = no
create mask = 0755
On both client machines, in both Debian and Windows I get the same result: login/password dialog. NO COMBINATION of security = user
, map to guest = Bad user
, security = share
, guest ok = yes
and such helped.
Windows 7 shows login/password dialog right after I click on the shared machine in network neighborhood. smb://homeserv/
file path in Debian (in any file browser) shows me two folders: disk1
and disk2
, as intended, by trying to open them bring the login/password dialog.
So, what I lack in the scheme to NOT HAVE to enter login/password? This is usability question, I will not create a user-based authentication for file junkyard.