I am connected to a LAN network of about 100 computers. Now some of have movies for sharing and various tv shows, and what not. While I am in Windows, I just go to Start -> Network and it opens all the computers, couple of clicks on computer, and right folder and I can drag it to my computer.
If I understood correctly this is done in openSUSE through Samba?
What is the easiest way for me to check what other people share on network and get it?
If there is a simple explanation or HOW TO, please help me =)
>
> Hello all =)
>
> I am connected to a LAN network of about 100 computers. Now some of
> have movies for sharing and various tv shows, and what not. While I am
> in Windows, I just go to Start -> Network and it opens all the
> computers, couple of clicks on computer, and right folder and I can drag
> it to my computer.
>
> If I understood correctly this is done in openSUSE through Samba?
>
> What is the easiest way for me to check what other people share on
> network and get it?
>
> If there is a simple explanation or HOW TO, please help me =)
>
>
> S
>
>
sh0cjer;
Enter smb:/ to list all workgroups available in your network. The Smb4K tool (package smb4k) can also be used to display all workgroups in your network and mount them on demand.
>
> It seems to work.
>
> For other users, if come across same issue
>
>> Unable to find any workgroups in your local network. This might be
>> caused by an enabled firewall.
>
> Go to Yast -> Security and Users -> Firewall, and turn it off.
> Current Status: Firewall is not running.
>
> Worked out for me
>
> Thanks guys.
>
>
Sh0cker;
Turning off the firewall is not normally the best option. You need to enable
broadcasts and open the following ports TCP: 135,139 and 445; UDP: 137 and
138.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
Hello,
I have the same problem, the Firewall is disabled, I am working through Swerdna’s tutorial. I think I have done what was said, but get the error listed above. I am a total noob as far as networking and need help. Where do I start? What am I looking for? How do I enable the broadcasts and open the ports you mentioned above? Why aren’t networks just a bit easier to set up? AAAAAAAAARH!
>
> Hello,
> I have the same problem, the Firewall is disabled, I am working
> through Swerdna’s tutorial. I think I have done what was said, but get
> the error listed above. I am a total noob as far as networking and need
> help. Where do I start? What am I looking for? How do I enable the
> broadcasts and open the ports you mentioned above? Why aren’t networks
> just a bit easier to set up? AAAAAAAAARH!
>
> thanks in advance for any help.
>
> btw, openSuSE 11.1 - 64bit
>
>
idee;
> On Sun May 31 2009 08:06 pm, idee wrote:
>
>>
<snip>
>>
>>
> idee;
>
> Have you read this:
> http://www.swerdna.net.au/linhowtofirewall.html
> You will find details on opening Samba ports.
>
> It is also possible, but a bit harder from:
> YAST–>System–>/etc/sysconfig Editor->Network–>Firewall–>Firewall2
idee;
One additional bit of information; be sure to add Samba users with:
smbpasswd -a <username>
The username must be a valid Linux user; the password you assign need not
coincide with their log on password.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
PV
Thanks. I will look at that tutorial. Swerdna’s work has been a great help for years. I didn’t see that one. I am a bit confused though. He suggests turning off the Firewall to try to get the network and settings all running clean before adding another layer of complexity. I would agree with that and have the Firewall turned off, but am still getting this error. Is it something other than the Firewall causing this or can that effect the network even when disabled?
Second question, do I need to install and configure DHCP first or does Samba handle that as well?
Unable to find any workgroups in your local network. This might be caused by an enabled firewall
after changing routers.
My IP address has changed, and I have adjusted my trusted network settings in YAST accordingly.
But I can’t add the UDP ports 137 + 138 and the TCP ports 139 + 445. It doesn’t matter how often I enter them or in what order, YAST will never save them. But when I delete “Samba Server” from my Allowed Services, and only have the netbios server listed, YAST saves the UDP ports, without me even adding them.
>
> PV
> Thanks. I will look at that tutorial. Swerdna’s work has been a
> great help for years. I didn’t see that one. I am a bit confused
> though. He suggests turning off the Firewall to try to get the network
> and settings all running clean before adding another layer of
> complexity. I would agree with that and have the Firewall turned off,
> but am still getting this error. Is it something other than the Firewall
> causing this or can that effect the network even when disabled?
>
> Second question, do I need to install and configure DHCP first or
> does Samba handle that as well?
>
> thanks,
> idee.
>
>
idee;
Just exactly what error are you receiving, and from where?
Every machine will need an IP. Either you need to have DHCP running for
your network or set static IP’s. Make sure all your machines are on the same
subnet, typically 192.168.0.0/24 or 192.168.1.0/24.
On your Samba server be certain that nmbd and smbd are running. You can
check this with:
ps -A|grep [n,s]mb
Be sure to add Samba users with smbpasswd (see earlier post).
Make certain every machine has the same Workgroup.
Make sure your /etc/samba/smb.conf’s [Global] section contains the
parameter:
name resolve order = bcast host lmhosts wins
This is the order in which Samba will try to resolve names. In the above it
will first try broadcasts then the hosts file followed by the lmhosts file
and lastly by wins. Unless you know what you are doing you will want bcast
first.
For testing, also take down the firewalls on your Windows machines. 3rd
party firewalls are sometimes a bit tricky to configure for network sharing.
Finally, if you still are having problems it might help to post the contents
of /etc/samba/smb.conf. You can substitute values for any sensitive
information.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
>
> I started getting the same error > Unable to find any workgroups in your
local network. This might be
>> caused by an enabled firewallafter changing routers.
> My IP address has changed, and I have adjusted my trusted network
> settings in YAST accordingly.
> But I can’t add the UDP ports 137 + 138 and the TCP ports 139 + 445. It
> doesn’t matter how often I enter them or in what order, YAST will never
> save them. But when I delete “Samba Server” from my Allowed Services,
> and only have the netbios server listed, YAST saves the UDP ports,
> without me even adding them.
>
> Not sure what to do now.
>
> I’m running Suse 11.1 with KDE 4.2.3
>
>
davegila;
You also need TCP 135, but that should have nothing to do with your inability
to save. Have you tried to add these directly with YaST’s “sysconfig
Editor”?
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
Sorry that I have not had the chance to get back until now. OK, things are a bit different now. You asked about the message; it was in konqueror at the smb:/ entry as noted in Swerdna’s tutorial as a test to see if Samba was running. The message was: “Unable to find any workgroups in your local network. This might be caused by an enabled firewall.” (but the firewall has been disabled). I was looking for missing apps last night and installed the 32bit Samba for connecting to Windows workgroups. I don’t know if that did anything, but now there is no error message. It just shows an empty konq window and below says “No Items - No Files - No Folders”. I
I don’t have time to dig right now, but will try tomorrow night after work. Thanks for all your help. I really need it. I will get back to this tomorrow. In the mean time here is my smb.conf if it helps.
# 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: 2009-03-20
[global]
workgroup = idee
netbios name = linux-dad
name resolve order = bcast host lmhosts wins
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 = No
security = domain
usershare max shares = 100
#add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
#domain logons = Yes
#domain master = Yes
#local master = Yes
#os level = 65
#preferred master = Yes
#security = user
[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
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
>
> Sorry that I have not had the chance to get back until now. OK, things
> are a bit different now. You asked about the message; it was in
> konqueror at the smb:/ entry as noted in Swerdna’s tutorial as a test to
> see if Samba was running. The message was: “Unable to find any
> workgroups in your local network. This might be caused by an enabled
> firewall.” (but the firewall has been disabled). I was looking for
> missing apps last night and installed the 32bit Samba for connecting to
> Windows workgroups. I don’t know if that did anything, but now there is
> no error message. It just shows an empty konq window and below says “No
> Items - No Files - No Folders”. I
> I don’t have time to dig right now, but will try tomorrow night after
> work. Thanks for all your help. I really need it. I will get back to
> this tomorrow. In the mean time here is my smb.conf if it helps.
>
>
> Code:
> --------------------
> # 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: 2009-03-20
> [global]
> workgroup = idee
> netbios name = linux-dad
> name resolve order = bcast host lmhosts wins
> 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 = No
Remove the following parameter. Samba will default to user security which is
normally what you want. This parameter only works properly if you are trying
to join an existing NT domain.
Unless you are trying to become part of an existing domain or the Sambba
machine is often off line, uncomment the following three parameters, Samba
likes to be the master browser.
> #local master = Yes
> #os level = 65
> #preferred master = Yes
> #security = user
> [homes]
> comment = Home Directories
> valid users = %S, %D%w%S
> browseable = No
> read only = No
> inherit acls = Yes
With security = domain the following share makes no sense at all. This is
only needed if Samba is a Domain Controller. Just comment it out. ( It will
not help with your problem, but clean smb.conf is IMHO much easier to
maintain.
> [profiles]
> comment = Network Profiles Service
> path = %H
> read only = No
> store dos attributes = Yes
> create mask = 0600
> directory mask = 0700
Unless you have compelling reasons I would remove the following two shares,
[homes] should suffice.
> [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
See my comment on [profiles] for this share
> [netlogon]
> comment = Network Logon Service
> path = /var/lib/samba/netlogon
> write list = root
>
> --------------------
>
>
> thanks again,
> idee
>
>
idee;
See above comments. Are you trying to make this a member server of an
existing NT domain? If you are, then you may disregard the comments in your
[global] section. Even then I think you would be better off with the
default “security = user”. If this is just a simple “workgroup” network,
then follow the above comments.
Domain security seems to be a tad buggy and really obsolete. If you really
are on an NT domain and need “security = domain”, be sure to join the domain
with:
net rpc join -S <domain PDC> -UAdministrator%password
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
As for what I am trying to do, I just want to get my home lan set up. It is 4 computers that all have openSuse and XP as a dual boot. The configuration, I have not really touched other than starting to work through the Swerdna tutorial (just started when I ran into this snag). The majority of it is the default from openSuSE 11.1. So I am more than open to any suggestions! If you suggest I kill most of it, I will not be offended. Just want to get this beast up and running for printing, backups and a few games with my kids.
>
> As for what I am trying to do, I just want to get my home lan set up.
> It is 4 computers that all have openSuse and XP as a dual boot. The
> configuration, I have not really touched other than starting to work
> through the Swerdna tutorial (just started when I ran into this snag).
> The majority of it is the default from openSuSE 11.1. So I am more than
> open to any suggestions! If you suggest I kill most of it, I will not
> be offended. Just want to get this beast up and running for printing,
> backups and a few games with my kids.
>
> I will dig into this tonight after work.
>
> thanks again,
> idee
>
>
idee;
Try using the smb.conf in the section:
“A template for a Workgroup file and print server” of
www.swerdna.net.au/linhowtosambaserver.html. You can add to it later.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
davegila;
You also need TCP 135, but that should have nothing to do with your inability
to save. Have you tried to add these directly with YaST’s “sysconfig
Editor”?
I just had a look at the sysconfig Editor. Strangely enough the aforementioned ports were in (I looked in FW_SERVICES_EXT_TCP & UDP). I added TCP 138, but that didn’t make any difference.
>
>> davegila;
>> You also need TCP 135, but that should have nothing to do with your
>> inability
>> to save. Have you tried to add these directly with YaST’s “sysconfig
>> Editor”?
>
> I just had a look at the sysconfig Editor. Strangely enough the
> aforementioned ports were in (I looked in FW_SERVICES_EXT_TCP & UDP). I
> added TCP 138, but that didn’t make any difference.
>
>
davegila;
Have you tested with the firewall turned off? Does it work then.
If Samba still does not work. Make sure that the workgroup is the same on all
the PC’s (Windows and Linux). You might also want to check the contents
of /etc/samba/smb.conf with the HowTos on Swerdna site: http://www.swerdna.net.au/linux.html
In this case it is most likely a poorly configured Samba setup, a hardware
problem or a Windows firewall issue. Many of the 3rd party firewalls for
Windows will block the Windows print/file sharing traffic by default.
If Samba works with the firewall down it is definitely a firewall problem,
make sure you are allowing broadcasts. That the interface you are opening
for Samba traffic is the interface you are actually using etc.
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green