Samba and Windows XP - Unable to find any workgroups

I want to share files from my opensuse 11.3 laptop and Windows XP desktop. It works well between Vista and XP. The domain name is WORKGROUP

I checked everything: firewall Opensuse (open ports), firewall XP (disabled), XP workgroup name (WORKGROUP), opensuse Samba workgroup name (WORKGROUP)

And my domain controller is set to “Not a DC”

Still when I launch network in Dolphin I get “Unable to find any workgroups in your local network”

Rebooted both systems. What could be wrong ?

So Samba does work and has done so for many years. That just means the problem is with your setup. There is a Samba configuration file that determines many things. You could post your copy here for us to look at. One of our very talented Forum users here (swerdna) has a web site with a lot of information about setting up Samba. Here is the link:

openSUSE SuSE Linux HOWTOs and Tutorials by Swerdna

In the mean time, you could post a copy of your smb.conf file for us to look at. The KDE menu Run Command would be:

kdesu kwrite /etc/samba/smb.conf

Copy and past a copy of this file here for us to see. Don’t forget to use the Advanced message editor mode and highlight your smb.conf text and then press the Code button (#) to wrap Code tags around the text to make it better to read which does not allow it to reformat it in your message post.

Thank You,

On Sat September 18 2010 04:36 pm, jdmcdaniel3 wrote:
<snip>
>
>
> Code:
> --------------------
> kdesu kwrite /etc/samba/smb.conf
> --------------------
<snip>
>
> Thank You,
>
This is safer:


cat /etc/samba/smb.conf


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

venzkep says:

This is safer:

 cat /etc/samba/smb.conf 


P. V.
This does prevent one from making any changes, that is true. Don’t forget to mention you need to open a terminal session to use this command.

Thank You,

Yes, here it is:

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2010-07-05

[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
ldap suffix =
wins server =
wins support = No
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

Share disabled by YaST

[netlogon]

comment = Network Logon Service

path = /var/lib/samba/netlogon

write list = root

jolato there is another thread here where swerdna is working with another user and has proposed a new smb.conf file. I would check it out and see if there is something there you can also use.

WIn XP can’t access Linux files after upgrade

Thank You,

ok, I’ll take a look

I tried but no luck after reboot. I of course replaced the workgroup name :wink: It would be nice to know how to stop/start samba in yast or command line ?:slight_smile:

Under Global, check to see if these exist and add them if they do not and then reboot. Only one copy of Samba should be set as the local browser master.

preferred master = auto (or yes, but only yes one time on one machine)
local master = yes

Thank You,

On Sun September 19 2010 02:36 am, jolato wrote:

>
> Yes, here it is:
>
>> # smb.conf is the main Samba configuration file. You find a full
>> commented
>> # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if
>> the
>> # samba-doc package is installed.
>> # Date: 2010-07-05
>> [global]
>> workgroup = WORKGROUP
>> passdb backend = tdbsam
>> printing = cups
>> printcap name = cups
>> printcap cache time = 750
>> cups options = raw
>> map to guest = Bad User
>> include = /etc/samba/dhcp.conf
>> logon path = \%L\profiles.msprofile
>> logon home = \%L%U.9xprofile
>> logon drive = P:
>> usershare allow guests = Yes
>> usershare max shares = 100
>> usershare owner only = False
>> add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody
>> -s /bin/false %m$
>> domain logons = No
>> domain master = No
>> security = user
>> ldap suffix =
>> wins server =
>> wins support = No
<snip>

jolato;

In your /etc/samba/smb.conf add the following parameter:


name resolve order = bcast host lmhosts

This controls the order that Samba tries to resolve names. The default
values has bcast (short for broadcast) last. As a result name resolution dies
before it tries bcast.

Also from YaST to check that smb and nmb are both allowed services through the
firewall (nmb does name resolution). YaST > Security and Users > Firewall >
Allowed Services. While you are in YaST, make sure that both smb and nmb are
set to start at boot. YaST > System > System Services(run level). You can
also use the Expert Mode in System Services to start/stop these services.

To start/stop smb or nmb from a console you can use the following to start or
stop services.


su
rcsmb start
rcsmb stop
rcnmb start
rcnmb stop

Besides start and stop there are two other useful parameters “status”
and “restart” (without quotes).


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

I have my own writeup on the subject though it may have been in the material you already read. I use a function called SWAT which gives you easy access to restart the program anytime you want. Read through this material. For now, there is no need to change your config file, just read about SWAT, the other config files, setting the run level and so forth. It is not required to load or start windbind, so you can ignor that one item. But, I would still read it completely through.

Samba SMB file sharing in openSUSE 11.2

It is getting late here in Austin and so I will not be back online until Monday. Good luck.

Thank You,

Try Swerdna’s SAMBA LAN Primer. I was never able to get SAMBA working with everything I needed until I read this. The trick for me was using his guide and working directly with smb.conf instead of using the GUI.

IMO you should refrain from recommending your tutorial to others until you have rewritten it as we discussed over in your original thread because there are serious problems with the advice that you gave there.

Ok, thanks for all your help, will try it out but need some free time.

But please allow me to share my first impression of OS11.3, e.g. why is such a simple things as sharing files between OS and Windows so difficult ? It’s supposed to be a peace of cake but … :expressionless: Anyway, in vista (also Ubuntu) it works out of the box (well, almost :))