Networking Forums

Networking Forums > Computer Networking > Linux Networking > SAMBA, SMB I'm lost and so is my windows 2000 machine on linux network

Reply
Thread Tools Display Modes

SAMBA, SMB I'm lost and so is my windows 2000 machine on linux network

 
 
Frank Conte
Guest
Posts: n/a

 
      12-13-2003, 07:54 PM
I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
hardest time seeing my Windows 2000 machine. Strangely the Windows 2000
can see the YD Linux machine and the Linus machine can see another
machine, a Windows 98 machine. The windows machines see each other OK.

I cannot get the linux box to see the 2000 machine at all. The config
file smb.conf has the same workgroup (WORKGROUP) configured.

I KDE panel I've also seemed to lose the ability to browse the network.
I was once able to see WORKGROUP with its icon but no longer. Have I
really screwed up?


 
Reply With Quote
 
 
 
 
Stephen Harris
Guest
Posts: n/a

 
      12-13-2003, 09:02 PM

"Frank Conte" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
hardest time seeing my Windows 2000 machine. Strangely the Windows 2000 can
see the YD Linux machine and the Linus machine can see another machine, a
Windows 98 machine. The windows machines see each other OK.
I cannot get the linux box to see the 2000 machine at all. The config file
smb.conf has the same workgroup (WORKGROUP) configured.

SH:
I suppose then that you have used useradd in linux and smbpasswd -a with
identical usernames. I guess to be safe it would be better to add "root"
again. Also there should be a username "root" on the windows machines with
admin rights. This may apply:

http://hr.uoregon.edu/davidrl/samba.html
"However, with both Windows NT/2000/2003 Servers and Samba Servers, you
cannot add Local Users and Local Groups to Global Groups.One option to get
around this is to select one account from Samba to add it to each Windows
2000/XP workstation's Administrators Local Group. This needs to be done on a
per-workstation basis since Local Groups are just that -- local to the box
itself, and to no one else.There is no way to do this from the Samba server
(nor should there be) or even from a Windows 2000 Server."

Regards, Stephen (read article for greater detail)



 
Reply With Quote
 
Frank Conte
Guest
Posts: n/a

 
      12-14-2003, 02:32 AM


Stephen Harris wrote:

> "Frank Conte" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
> hardest time seeing my Windows 2000 machine. Strangely the Windows 2000 can
> see the YD Linux machine and the Linus machine can see another machine, a
> Windows 98 machine. The windows machines see each other OK.
> I cannot get the linux box to see the 2000 machine at all. The config file
> smb.conf has the same workgroup (WORKGROUP) configured.
>
> SH:
> I suppose then that you have used useradd in linux and smbpasswd -a with
> identical usernames. I guess to be safe it would be better to add "root"
> again. Also there should be a username "root" on the windows machines with
> admin rights. This may apply:
>


I did add identical usernames. I'll try your suggestion...However I can ping the
windows 2000 machine. Where is the authetication done? With the 98 machine I log
in from the linux box, as noted, with a win98 created user. I can smb to the
file on the kdesktop. Win 98 can get to Win 2000 because of NETBUI protocol. I'm
guessing something had to be done on the Windows 2000 side as opposed to the
linux box.

Thanks.



>
> http://hr.uoregon.edu/davidrl/samba.html
> "However, with both Windows NT/2000/2003 Servers and Samba Servers, you
> cannot add Local Users and Local Groups to Global Groups.One option to get
> around this is to select one account from Samba to add it to each Windows
> 2000/XP workstation's Administrators Local Group. This needs to be done on a
> per-workstation basis since Local Groups are just that -- local to the box
> itself, and to no one else.There is no way to do this from the Samba server
> (nor should there be) or even from a Windows 2000 Server."
>
> Regards, Stephen (read article for greater detail)


 
Reply With Quote
 
Stephen Harris
Guest
Posts: n/a

 
      12-14-2003, 04:24 AM

"Frank Conte" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> Stephen Harris wrote:
>
> > "Frank Conte" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
> > hardest time seeing my Windows 2000 machine. Strangely the Windows 2000

can
> > see the YD Linux machine and the Linus machine can see another machine,

a
> > Windows 98 machine. The windows machines see each other OK.
> > I cannot get the linux box to see the 2000 machine at all. The config

file
> > smb.conf has the same workgroup (WORKGROUP) configured.
> >
> > SH:
> > I suppose then that you have used useradd in linux and smbpasswd -a with
> > identical usernames. I guess to be safe it would be better to add "root"
> > again. Also there should be a username "root" on the windows machines

with
> > admin rights. This may apply:
> >

>
> I did add identical usernames. I'll try your suggestion...However I can

ping the
> windows 2000 machine. Where is the authetication done? With the 98 machine

I log
> in from the linux box, as noted, with a win98 created user. I can smb to

the
> file on the kdesktop. Win 98 can get to Win 2000 because of NETBUI

protocol. I'm
> guessing something had to be done on the Windows 2000 side as opposed to

the
> linux box.
>
> Thanks.
>


There could be an error in your smb.conf file. Troubleshooting usually
involves
pinging both ways and with the netbios name (machine name). IOW ping
192.168.1.12 should also work using ping with the name of that machine
associated with the IP address. Do you have a netbios name = machine_name
entry in your smb.conf?

>
>
> >
> > http://hr.uoregon.edu/davidrl/samba.html
> > "However, with both Windows NT/2000/2003 Servers and Samba Servers, you
> > cannot add Local Users and Local Groups to Global Groups.One option to

get
> > around this is to select one account from Samba to add it to each

Windows
> > 2000/XP workstation's Administrators Local Group. This needs to be done

on a
> > per-workstation basis since Local Groups are just that -- local to the

box
> > itself, and to no one else.There is no way to do this from the Samba

server
> > (nor should there be) or even from a Windows 2000 Server."
> >
> > Regards, Stephen (read article for greater detail)

>



 
Reply With Quote
 
Frank Conte
Guest
Posts: n/a

 
      12-14-2003, 03:10 PM
Stephen

I thoroughly checked my smb.conf file and didn't even find an "Commented" inert
line calling for
netbios name = machine_name. There were other references to netbios but not the
kind you described.

fc


Stephen Harris wrote:

> "Frank Conte" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> >
> > Stephen Harris wrote:
> >
> > > "Frank Conte" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
> > > hardest time seeing my Windows 2000 machine. Strangely the Windows 2000

> can
> > > see the YD Linux machine and the Linus machine can see another machine,

> a
> > > Windows 98 machine. The windows machines see each other OK.
> > > I cannot get the linux box to see the 2000 machine at all. The config

> file
> > > smb.conf has the same workgroup (WORKGROUP) configured.
> > >
> > > SH:
> > > I suppose then that you have used useradd in linux and smbpasswd -a with
> > > identical usernames. I guess to be safe it would be better to add "root"
> > > again. Also there should be a username "root" on the windows machines

> with
> > > admin rights. This may apply:
> > >

> >
> > I did add identical usernames. I'll try your suggestion...However I can

> ping the
> > windows 2000 machine. Where is the authetication done? With the 98 machine

> I log
> > in from the linux box, as noted, with a win98 created user. I can smb to

> the
> > file on the kdesktop. Win 98 can get to Win 2000 because of NETBUI

> protocol. I'm
> > guessing something had to be done on the Windows 2000 side as opposed to

> the
> > linux box.
> >
> > Thanks.
> >

>
> There could be an error in your smb.conf file. Troubleshooting usually
> involves
> pinging both ways and with the netbios name (machine name). IOW ping
> 192.168.1.12 should also work using ping with the name of that machine
> associated with the IP address. Do you have a netbios name = machine_name
> entry in your smb.conf?
>
> >
> >
> > >
> > > http://hr.uoregon.edu/davidrl/samba.html
> > > "However, with both Windows NT/2000/2003 Servers and Samba Servers, you
> > > cannot add Local Users and Local Groups to Global Groups.One option to

> get
> > > around this is to select one account from Samba to add it to each

> Windows
> > > 2000/XP workstation's Administrators Local Group. This needs to be done

> on a
> > > per-workstation basis since Local Groups are just that -- local to the

> box
> > > itself, and to no one else.There is no way to do this from the Samba

> server
> > > (nor should there be) or even from a Windows 2000 Server."
> > >
> > > Regards, Stephen (read article for greater detail)

> >


 
Reply With Quote
 
Stephen Harris
Guest
Posts: n/a

 
      12-14-2003, 09:40 PM

"Frank Conte" wrote:

> Stephen
>
> I thoroughly checked my smb.conf file and didn't even find an "Commented"

inert
> line calling for
> netbios name = machine_name. There were other references to netbios but

not the
> kind you described.
>
> fc
>
>

Stephen Harris wrote:

There is a fairly well-written doc called the Samba HowTo which should
help you: http://us1.samba.org/samba/docs/
The current Samba-3 release version of the Samba-HOWTO-Collection
may be found here in PDF and HTML formats.

I like the pdf because it seems easier to search. Then sometimes to cut
and paste I use the html version. I found 99 references to "netbios name"
and here are a couple of examples with netbios name in the smb.conf.
There are also sections dealing with file and directory ownerships etc.

Example 11.2. Configuration with LDAP


[global]
security = user
encrypt passwords = yes
netbios name = MORIA
workgroup = NOLDOR

Example 17.1. smb.conf with DFS configured


[global]
netbios name = GANDALF
host msdfs = yes

[dfs]
path = /export/dfsroot
msdfs root = yes

SH: Incidentally, the usenet group linux.samba has a
concentration of networking experience with samba,
plus about 10 times as many messages posted.

From groups.google.com I found these references:

# This sets the NetBIOS name by which a Samba server is known.
# By default it is the same as the first component of the host's
DNS name.
# If a machine is a browse server or logon server this name
# (or the first component of the hosts DNS name) will be the
name that these
# services are advertised under.
netbios name = <15 chars max)>

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = <MYGROUP>

SH: next example

# Global parameters
[global]
workgroup = universe
netbios name = pirahna
domain master = yes
os level = 33
I am using the following smb.conf file in order to get different
options depending on what name the user uses to
connect to our Samba server (1.9.17p4):

SH: next example

[global]

; Multiple personality SAMBA server based on system name.

config file = /usr/add-on/samba/lib/smb.conf.%L


In each smb.conf.%L file I use the 'netbios name' and 'wins server' option
to set the values I need. However, I note that the netbios names that I am
setting are not being registered with the NT Wins servers specified.

If I set the netbios name in the top level smb.conf file it works as
expected.
How can I get nmbd to register multiple names with each name registration
going to a different NT Wins server?

SH: next example

I have the latest version ( as of two nights ago) of Samba running on
OpenBSD 3.0.

My problem is that I can't seem to resolve the NetBIOS name of
my server from my two workstations (Windows XP Pro). My two XP machines
can resolve each other just fine. However they can't resolve the NetBIOS
name
of my OpenBSD server.
{SH: This is why I suggested pinging the linux machine by name.}

SH: next example

*) Install the samba and the samba-client from the rpms (go
to rpmfind.net for the latest rpm's) i used samba-2.2.7-2
and samba-client-2.2.7-2 pkgs

*) $rpm -i samba* install the samba software on the linux
box.

*) open the smb.conf and put in the below entries

# Global parameters
[global]
netbios name = MYSAMBASHARE
workgroup = MYSAMBAWORKGROUP
log level = 3
log file = /tmp/samba/log/samba.log
encrypt passwords=yes
#security=user
security=share
hosts allow=12.20.

# info abt shared directories
[sharedir]
path =/home/testsamba
browseable = yes
read only = no
directory mode=0775
create mode=0664

the security= share lets all the authenticated
users to see the [sharedir]. there are several
other options for security= user or security=
domain etc .

There is a know bug in windows network
neigbourhood, which doesnot allow a user who does
not have the same user name/passwd on both win
2k(client ) and the samba server(linux) to see the
[shareddir] when the security=user is set in the
above smb.conf.

the "hosts allow=12.20" lets the users with the
IP's starting with 12.20.* see the [sharedir]

SH: security is usually set to user; since you have
tried identical usernames and passwords, the issue
he talks about (network neighborhood, is not the
cause of the problem. In google using the keywords
smb.conf and netbios name I found 12,300 hits. I
think maybe 12,000 of those will show netbios name =
machine_name in the [global] section of the smb.conf.
However, this was offered as a suggestion for you to
try, not as a guaranteed cure.

SH: last example

I'm having a problem with name resolution and samba. I'm running samba
1.9.17p4 on Solaris 2.5.1 and need to enable DNS. I'm using the
"netbios name" field in smb.conf to specify a different computer name
instead
of my current samba server hostname. This works fine until I change the
nsswitch.conf file on my server to enable DNS.
If I change the line:

host: files

to

host: files dns

my netbios name is no longer recognized as a valid samba server. I still
see it in the network neighborhood, but if I click on it to view the shares,
it indicates its not a valid server.

Any idea what might be wrong?

Here is a link to a troubleshooting guide:
http://www.practicallynetworked.com/...innetprobs.htm

And a lot of networking tutorials:
http://www.wown.com/
http://www.wown.com/articles_tutorials/w2kshare.html

There are quite a few reasons for Samba not to work
and the documentation is a better resource than me
for exploring those reasons in a systematic manner.

Happy Holidays,
Stephen












 
Reply With Quote
 
Neil Horman
Guest
Posts: n/a

 
      12-15-2003, 12:53 PM
Frank Conte wrote:
> I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
> hardest time seeing my Windows 2000 machine. Strangely the Windows 2000
> can see the YD Linux machine and the Linus machine can see another
> machine, a Windows 98 machine. The windows machines see each other OK.
>

When you use the term "see" what do you mean? Do you mean you can ping
their ip addresses, or that you can see them in a network browser?

> I cannot get the linux box to see the 2000 machine at all. The config
> file smb.conf has the same workgroup (WORKGROUP) configured.
>

Is the 2000 machine configured to participate in the WORKGROUP workgroup?

> I KDE panel I've also seemed to lose the ability to browse the network.
> I was once able to see WORKGROUP with its icon but no longer. Have I
> really screwed up?
>

This sounds to me kind of like a netbios name resolution problem:

1) is wins listed as a resolution method in nsswitch.conf?

2) is libnsswins.so properly installed?

3) is nmbd running?

HTH
Neil


--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net

 
Reply With Quote
 
Mark Bratcher
Guest
Posts: n/a

 
      12-15-2003, 06:03 PM
On Sat, 13 Dec 2003 15:54:23 -0500, Frank Conte <(E-Mail Removed)> took up his/her discourse and spake:
>
> I'm running Yellow Dog Linux on a PowerPC. It's nice but I'm having the
> hardest time seeing my Windows 2000 machine. Strangely the Windows 2000
> can see the YD Linux machine and the Linus machine can see another
> machine, a Windows 98 machine. The windows machines see each other OK.
>
> I cannot get the linux box to see the 2000 machine at all. The config
> file smb.conf has the same workgroup (WORKGROUP) configured.
>
> I KDE panel I've also seemed to lose the ability to browse the network.
> I was once able to see WORKGROUP with its icon but no longer. Have I
> really screwed up?
>
>


Do you have a guest account enabled on the Windows 2000 machine?
By default, it's not enabled.

--
Mark Bratcher
--------------------------------------------------------
Why choose Linux? Check out this Ernie Ball saga:
http://linux.bryanconsulting.com/stories/storyReader$172
 
Reply With Quote
 
Stephen Harris
Guest
Posts: n/a

 
      12-16-2003, 08:58 PM

"Frank Conte" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Stephen
>
> I thoroughly checked my smb.conf file and didn't even find an "Commented"

inert
> line calling for
> netbios name = machine_name. There were other references to netbios but

not the
> kind you described.
>
> fc
>
>


I just found an online tutorial with pictures which should work for anyone
who is linux/windows literate. http://www.samba.netfirms.com/

"netbios name = Samba: netbios name is what you will see in your Windows pc
"Network Neighborhood" for your Samba server.You can name this anything you
wish. If you leave it blank, it will default to your host name."

SH: Actually I think it defaults to the name before the first period:
tiger.woods.com the default would be tiger (must be =/less than 15
characters)

If a user did not create a hostname during installation then in RedHat
one would edit /etc/sysconfig/network and add a HOSTNAME="somename" line
edit /etc/hosts and then use the command hostname "somename" without quotes.

Samba.org has just released 3.0.1 which fixes some swat bugs etc. The
tutorial
mentions how to restart the smb daemon for changes to start working. I have
seen scripts for this. In RH, I think the easiest way is to go to the black
and
white command line screen and type "setup". This brings up a configuration
screen with a few choices. There is one called services if I remember
correctly
and if that choice is expanded it shows a list of all available services. If
smb
does not have a check mark, put one in and smb will start automatically
thereafter.

From the Introduction:
1) In coming to this website, it is assumed that you have a working TCP/IP
network. This meaning that all pc's are on the same subnet, IP range, and
that you are able to ping all your pc's by name and IP. If your network does
not meet these conditions, there is no sense in proceeding further as Samba
requires a properly configured TCP/IP network in order to function properly.
SH: Pinging by name and IP is also mentioned in the Samba HowTo maybe
chapter 26. Samba.org also has chapter 12 (Troubleshooting) of Linux in 24
Hours which dwells upon netbios considerations.

Regards,

Stephen


 
Reply With Quote
 
Stephen Harris
Guest
Posts: n/a

 
      12-16-2003, 09:10 PM

"Frank Conte" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Stephen
>
> I thoroughly checked my smb.conf file and didn't even find an "Commented"

inert
> line calling for
> netbios name = machine_name. There were other references to netbios but

not the
> kind you described.
>
> fc
>

http://www.samba.netfirms.com/faq.htm
Q: I can see the Samba server in network neighborhood, but when I click on
it, I get the error message "network path not found"

A: If you have followed the instructions correctly here, then a few
possibilities would be that:

1) There is a network pc/share, but the smb protocol is being blocked from
communicating with it. Now with Redhat when you do the install, there is a
firewall that most people choose to install it and guess what....it blocks
ports 137-139, the very same ports that the smb protocol relies on. Since I
do not use Redhat, I cannot tell you how to open these ports.

2) Could be a DNS issue, which in it's own right is not a Samba issue,
rather a very basic TCP/IP networking issue...you need to have a proper
TCP/IP network setup before attempting to setup Samba.

SH: One way to disable the firewall is to go to a black and white screen
and from the command prompt type "setup" one of those choices also lets the
user disable the firewall. Then test to see if the network is up.
Afterwards, there is probably a way to allow the samba ports specifically or
use a router with a firewall.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remotely login into a pure IPv6 Linux machine from a DualStack windows machine chaitan Linux Networking 1 11-21-2007 05:37 PM
Samba: Problem joining RHEL 3 machine to a WIndows 2000 domain scorpioboii Linux Networking 0 08-26-2005 07:43 PM
How to network boot Linux from a Windows XP machine. susheel.kaushik@gmail.com Linux Networking 0 05-25-2005 01:29 AM
linux on windows 2000 network bigbinc Linux Networking 2 12-04-2003 06:34 PM
Connect a windows 98 machine to a windows 2000 network Jack Windows Networking 1 08-16-2003 05:41 PM



1 2 3 4 5 6 7 8 9 10 11