Samba share hidden

Issues related to configuring your network
Post Reply
Posts: 1
Joined: 2011/11/03 13:31:36

Samba share hidden

Post by sirmarkus » 2011/11/03 14:03:03

Hi. I installed samba on CentOS 6 and it work just fine, except for one thing.
the shares \ CentOS pc can't be seen on a Windows XP PC.
I can get there by typing \\samba and see the shared folders that way, i can also add and edit it.
they are in the same workgroup and CentOS does seen my XP in "Places"

I was wondering if its even possible to get Windows to even "discover" these shares without mapping them, or did i mis something simple?

i think myself to be a noob on Linux, so getting samba to work with the guides was great.
Yes i change SElinux settings
yes the firewall was changed
yes the permissions where changed

everything is running on VMWare, and it is never going to run on a real system, so some security settings aren't needed as nobody else will ever work with it.

netbios name = SAMBA
socket options = TCP_NODELAY
local master = no
workgroup = HASSELD
os level = 20
encrypt passwords = yes
security = share
winbind use default domain = no

guest ok = yes
comment = Public Shared Folder
public = yes
path = /my_shared_folder
writable = yes

comment = Read Only Shared Folder
path = /tmp
guest ok = yes
browseable = yes
writeable = no
read only = yes
public = yes[/code]

Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Samba share hidden

Post by pschaff » 2011/11/04 20:39:09

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

The only way XP workgroup browsing has worked for me is to make the Samba server the workgroup master browser with the following entries[code]
security = user
passdb backend = tdbsam
domain master = yes
domain logons = yes
local master = yes
os level = 222
preferred master = yes

Posts: 71
Joined: 2010/10/12 17:16:07

Re: Samba share hidden

Post by OuldeFauder » 2012/01/02 21:07:19

I do it like this:

workgroup = sydomain
printcap name = cups
disable spoolss = Yes
show add printer wizard = No
username map = /etc/samba/smbusers
server string =
security = user
encrypt passwords = yes
guest ok = no
; guest account = nobody

** not pertinent info

comment = sans
path = /sans
force user = Carl
force group = users
writeable = yes
browseable = yes
valid users = Alice
Sans is an external raid I rsync to. other shares have same setup only the valid users change.

The host file lists system users but only for CentOS machines, not needed for our XP machine, they are only listed as valid users in smb.conf. Each user must have an user name and password on the smb server prior to first log on. With XP at first logon I map the drive so that future logons are automatic, saves me having to run to that machine to logon when my lady who does the books hollers, "I can't do a backup". As an added precaution the XP machine is not allowed internet access, she has a separate CentOS machine for that.

This setup has been working perfectly for me for over 5 years and is very simple.

Post Reply

Return to “CentOS 6 - Networking Support”