W2K / Samba problems.

W2K / Samba problems.

Post by Tom Jaco » Sun, 09 Jun 2002 14:16:25



Hello.

I have a RedHat Linux 7.2 server running, with Samba, version 2.2.1a
(or 2.2.4, not completely sure.) I have three problems.

1. I can't figure out how to configure Samba so that my W2K box will
see it.

2. (less important) how do I setup my Linux box to print to my W2K
printer?

3. (much much less important) how to I get my MAC G3 running OS 8.6 to
see/use the Samba server?

The primary problem, of course, is #1. Here's some background
information:

-- W2K BOX --

On my W2K box, I can FTP or telnet to the Linux Server...no problems
there.

At a command prompt, when I first typed "net use
\\linux_server\webdocs" I got the following error message:

"System error 1234 has occured.

No service is operating at the destination network endpoint on the
remote system."

After manually running /usr/local/samba/bin/smbd -D  (and nmbd -D) I
get the error: "System error 53 has occured. The network path was not
found."

When I browse my entire network using Windows Explorer, it finds my
workgroup (Web), but not other computers. Typing in \\server\\share or
\\ip address\share also does not work.

On my W2K box, my workgroup is set to "WEB". (I have also had it set
to WEB_DEVELOPMENT, that doesn't work either. More on that in a
sec...)

The c:\windows\system32\drivers\etc\hosts file contains the following
entries:

127.0.0.1        localhost         # This Computer
192.168.1.150    linux_server      # Red Hat Linux Server
192.168.1.250    mac               # MAC G3

-- LINUX BOX --

I can use swat, via browser at http://127.0.0.1:901. Swat is started
via xinetd

On the Linux box, when I type "smbclient -L localhost", and enter the
password (or leave blank & press enter), I get the following:

Domain=[WEB] OS=[LINUX] Server=[Samba 2.2.4]

Sharename          Type          Comment
---------          ----          -------
webdocs            disk          Web files (/web/docs)
IPC$               IPC           IPC Service (Samba 2.2.4)
ADMIN$             Disk          IPC Service (Samba 2.2.4)

Server             Comment
------             -------

Workgroup          Master
---------          ------
WEB_DEVELOPMENT    LINUX_SERVER

The first odd thing I notice about the results is that there is no
entry under "Server" (see above). I would assume linux_server would
appear there.

The next odd thing I notice is that at one time, I did have the
workgroup defined as "WEB_DEVELOPMENT" but then changed it to "WEB".
When I make changes to this file, (e.g., the share name [webdocs] to
[foo]) it appears when running smbclient -L localhost. But changing
the workgroup = web from workgroup = WEB_DEVELOPMENT, does not change
the results. The file I edited was /usr/local/samba/lib/smb.conf.
Here's the contents of that file:

[global]
        netbios name = LINUX_SERVER
        workgroup = WEB
        security = user
        # encrypt passwords = Yes
        smb passwd file = /usr/local/samba/private/smbpasswd
        hosts allow = 192.168.1. 127.

[webdocs]
        path = /web/docs
        comment = /web/docs is the location of web pages on this Linux box.
        read only = No
        guest ok = Yes

Another odd thing I found was that there's an additional smb.conf file
located in /etc/samba/, which I did not put there. It includes a ton
of extra documentation, and options, the majority of which are
commented out. I'm assuming it's a sample config file, but I modified
it as well.

Here's one possible problem: I thought Samba was executed via xinetd
at startup. I just noticed that I don't have a samba entry in there
though. So I manually ran /usr/local/samba/bin/smbd -D (and nmbd -D).

Any help on getting this up & running would be MUCH appreciated!

P.S. Extra credit (if you're so inclined) are the following:

1. How do I configure my Linux box so that it can print to a printer
on the W2K box? I have file/printer sharing on, on the W2K box. Just
not sure how to setup the smbclient on Linux and anything else that
needs to be done.

2. How can I get the MAC G3 running OS 8.6 (also on the same router as
the other two boxes) to see the Linux Server?

Thank you VERY much in advance for any help you can provide!!!

 
 
 

W2K / Samba problems.

Post by Yuan Li » Sun, 09 Jun 2002 16:31:27


 > 1. I can't figure out how to configure Samba so that my W2K box will
 > see it.

[snip]

 > the results. The file I edited was /usr/local/samba/lib/smb.conf.
 > Here's the contents of that file:
 >
 > [global]
 >   netbios name = LINUX_SERVER
 >   workgroup = WEB
 >   security = user
 >   # encrypt passwords = Yes
 >   smb passwd file = /usr/local/samba/private/smbpasswd
 >   hosts allow = 192.168.1. 127.

                        ^^^^^^^^^^^^^^^
Could this be the problem?

 > [webdocs]
 >   path = /web/docs
 >   comment = /web/docs is the location of web pages on this Linux box.
 >   read only = No
 >   guest ok = Yes
 >
 > Another odd thing I found was that there's an additional smb.conf file
 > located in /etc/samba/, which I did not put there. It includes a ton
 > of extra documentation, and options, the majority of which are
 > commented out. I'm assuming it's a sample config file, but I modified
 > it as well.
 >
 > Here's one possible problem: I thought Samba was executed via xinetd
 > at startup. I just noticed that I don't have a samba entry in there
 > though. So I manually ran /usr/local/samba/bin/smbd -D (and nmbd -D).

Samba is usually started by an RC file.  In RedHat, it is
/etc/rc.d/init.d/samba; a symb link should exist under /etc/rc.d/rc3.d
or something.

 > Any help on getting this up & running would be MUCH appreciated!
 >
 > P.S. Extra credit (if you're so inclined) are the following:
 >
 > 1. How do I configure my Linux box so that it can print to a printer
 > on the W2K box? I have file/printer sharing on, on the W2K box. Just
 > not sure how to setup the smbclient on Linux and anything else that
 > needs to be done.

This is not a task for smbclient.  Just configure the samba server.

 > 2. How can I get the MAC G3 running OS 8.6 (also on the same router as
 > the other two boxes) to see the Linux Server?

I'm not sure if MacOS 8 supports SMB.  If not, you'll need to configure
AppleTalk in Samba.  I don't know how to do this.

Yuan Liu

 > Thank you VERY much in advance for any help you can provide!!!
 >

 
 
 

W2K / Samba problems.

Post by Hors » Wed, 12 Jun 2002 10:24:46


I recently set up a W2K/Samba network, and got stuck for a long time
because the default RedHat firewall was installed and it (at least in RH
7.3) blocks ports 137-139, used by Samba.  I turned off the firewall and
instant network.  I'm too new to tell whether this is any part of your
problem, but it gave me such fits I thought I ought to tell you about it.:-)

I got this info from the linux.samba group.


> Hello.

> I have a RedHat Linux 7.2 server running, with Samba, version 2.2.1a
> (or 2.2.4, not completely sure.) I have three problems.

> 1. I can't figure out how to configure Samba so that my W2K box will
> see it.

> 2. (less important) how do I setup my Linux box to print to my W2K
> printer?

> 3. (much much less important) how to I get my MAC G3 running OS 8.6 to
> see/use the Samba server?

> The primary problem, of course, is #1. Here's some background
> information:

> -- W2K BOX --

> On my W2K box, I can FTP or telnet to the Linux Server...no problems
> there.

> At a command prompt, when I first typed "net use
> \\linux_server\webdocs" I got the following error message:

> "System error 1234 has occured.

> No service is operating at the destination network endpoint on the
> remote system."

> After manually running /usr/local/samba/bin/smbd -D  (and nmbd -D) I
> get the error: "System error 53 has occured. The network path was not
> found."

> When I browse my entire network using Windows Explorer, it finds my
> workgroup (Web), but not other computers. Typing in \\server\\share or
> \\ip address\share also does not work.

> On my W2K box, my workgroup is set to "WEB". (I have also had it set
> to WEB_DEVELOPMENT, that doesn't work either. More on that in a
> sec...)

> The c:\windows\system32\drivers\etc\hosts file contains the following
> entries:

> 127.0.0.1        localhost         # This Computer
> 192.168.1.150    linux_server      # Red Hat Linux Server
> 192.168.1.250    mac               # MAC G3

> -- LINUX BOX --

> I can use swat, via browser at http://127.0.0.1:901. Swat is started
> via xinetd

> On the Linux box, when I type "smbclient -L localhost", and enter the
> password (or leave blank & press enter), I get the following:

> Domain=[WEB] OS=[LINUX] Server=[Samba 2.2.4]

> Sharename          Type          Comment
> ---------          ----          -------
> webdocs            disk          Web files (/web/docs)
> IPC$               IPC           IPC Service (Samba 2.2.4)
> ADMIN$             Disk          IPC Service (Samba 2.2.4)

> Server             Comment
> ------             -------

> Workgroup          Master
> ---------          ------
> WEB_DEVELOPMENT    LINUX_SERVER

> The first odd thing I notice about the results is that there is no
> entry under "Server" (see above). I would assume linux_server would
> appear there.

> The next odd thing I notice is that at one time, I did have the
> workgroup defined as "WEB_DEVELOPMENT" but then changed it to "WEB".
> When I make changes to this file, (e.g., the share name [webdocs] to
> [foo]) it appears when running smbclient -L localhost. But changing
> the workgroup = web from workgroup = WEB_DEVELOPMENT, does not change
> the results. The file I edited was /usr/local/samba/lib/smb.conf.
> Here's the contents of that file:

> [global]
>    netbios name = LINUX_SERVER
>    workgroup = WEB
>    security = user
>    # encrypt passwords = Yes
>    smb passwd file = /usr/local/samba/private/smbpasswd
>    hosts allow = 192.168.1. 127.

> [webdocs]
>    path = /web/docs
>    comment = /web/docs is the location of web pages on this Linux box.
>    read only = No
>    guest ok = Yes

> Another odd thing I found was that there's an additional smb.conf file
> located in /etc/samba/, which I did not put there. It includes a ton
> of extra documentation, and options, the majority of which are
> commented out. I'm assuming it's a sample config file, but I modified
> it as well.

> Here's one possible problem: I thought Samba was executed via xinetd
> at startup. I just noticed that I don't have a samba entry in there
> though. So I manually ran /usr/local/samba/bin/smbd -D (and nmbd -D).

> Any help on getting this up & running would be MUCH appreciated!

> P.S. Extra credit (if you're so inclined) are the following:

> 1. How do I configure my Linux box so that it can print to a printer
> on the W2K box? I have file/printer sharing on, on the W2K box. Just
> not sure how to setup the smbclient on Linux and anything else that
> needs to be done.

> 2. How can I get the MAC G3 running OS 8.6 (also on the same router as
> the other two boxes) to see the Linux Server?

> Thank you VERY much in advance for any help you can provide!!!

 
 
 

W2K / Samba problems.

Post by Tom Jaco » Wed, 12 Jun 2002 15:42:26




>  > 1. I can't figure out how to configure Samba so that my W2K box will
>  > see it.

> [snip]

>  > the results. The file I edited was /usr/local/samba/lib/smb.conf.
>  > Here's the contents of that file:

>  > [global]
>  >      netbios name = LINUX_SERVER
>  >      workgroup = WEB
>  >      security = user
>  >      # encrypt passwords = Yes
>  >      smb passwd file = /usr/local/samba/private/smbpasswd
>  >      hosts allow = 192.168.1. 127.

>                         ^^^^^^^^^^^^^^^
> Could this be the problem?

Was there anything in particular that you thought might be a problem
in this section of the smb.conf file?

Quote:>  > [webdocs]
>  >      path = /web/docs
>  >      comment = /web/docs is the location of web pages on this Linux box.
>  >      read only = No
>  >      guest ok = Yes
<SNIP>
>  > Here's one possible problem: I thought Samba was executed via xinetd
>  > at startup. I just noticed that I don't have a samba entry in there
>  > though. So I manually ran /usr/local/samba/bin/smbd -D (and nmbd -D).

> Samba is usually started by an RC file.  In RedHat, it is
> /etc/rc.d/init.d/samba; a symb link should exist under /etc/rc.d/rc3.d
> or something.

Just to assume startup is not the problem, I restarted the Linux box,
(default is run level 3) then at the shell prompt, I restarted smbd -D
and nmbd -D. After doing so, I ran smbclient -L localhost and it looks
like it's running successfully. Below is the contents of running that
command:

added interface ip=192.168.1.150 bcast=192.168.1.255
nmask=255.255.255.0

Anonymous login successful
Domain=[WEB] OS=[Unix] Server=[Samba 2.2.4]

        Sharename      Type      Comment
        ---------      ----      -------
        webdocs        Disk      /web/docs is the location of web pages on
this Linux box.
        IPC$           IPC       IPC Service (Samba 2.2.4)
        ADMIN$         Disk      IPC Service (Samba 2.2.4)

        Server               Comment
        ---------            -------
        LINUX_SERVER         Samba 2.2.4

        Workgroup            Master
        ---------            -------
        WEB                  LINUX_SERVER

But alas, still the same problem. When I use Windows Explorer, and
click Entire Network --> Microsoft Windows Network --> Web, I get an
error message that says, "Web is not accessible. The list of servers
for this workgroup is not currently available."

Quote:>  > Any help on getting this up & running would be MUCH appreciated!

>  > P.S. Extra credit (if you're so inclined) are the following:

>  > 1. How do I configure my Linux box so that it can print to a printer
>  > on the W2K box? I have file/printer sharing on, on the W2K box. Just
>  > not sure how to setup the smbclient on Linux and anything else that
>  > needs to be done.

> This is not a task for smbclient.  Just configure the samba server.

OK. Not sure how to complete the config., but of course, that's what
I'm hoping I'll be able to do here. :-)

If anyone has any additional troubleshooting steps, please let me
know! :)

 
 
 

W2K / Samba problems.

Post by Prager Roma » Fri, 14 Jun 2002 03:01:40





>> [snip]

>>  >  smb passwd file = /usr/local/samba/private/smbpasswd
>>  >  hosts allow = 192.168.1. 127.

>>                         ^^^^^^^^^^^^^^^
>> Could this be the problem?
> Was there anything in particular that you thought might be a problem
> in this section of the smb.conf file?

Yes. The extra blank before 127
 
 
 

1. Samba/W2K Problem With Roaming Profiles

I've set up a Linux machine as a PDC (relevant config below). Roaming
profiles appear, at a first glance to work with WinXP. With Win2K,
however, the profile never gets copied to the server, only from it (and
then it's merged with the copy on the local disk).

Is there something I'm missing on the Win2K set up?

smb.conf:
[global]
        logon path = \\server\profile\%U
        domain logons = Yes
        os level = 68
        preferred master = Yes
        domain master = Yes

[profile]
        path = /home/profiles
        read only = No
        create mask = 0600
        directory mask = 0700
        profile acls = Yes
        csc policy = disable

--

Oxford Semiconductor Ltd          http://www.oxsemi.com
25 Milton Park, Abingdon,         Tel: +44 (0) 1235 824 909
Oxfordshire.    OX14 4SH          Fax: +44 (0) 1235 821 141

2. BSD 3.3 as Router & Firewall

3. Problem with samba and w2k

4. FWB Toolkit version 3 just released

5. Samba W2K access problem

6. Sendmail 5.65

7. Can linux substitute w2k server and do the same as w2k server?

8. mounting floppy

9. VPN From W2K/Pro to W2K Server Doesn't Work Through IPCHAINS Firewall

10. Tri Boot win98,w2k,linux using w2k boot manager?

11. Accessing W2K shares as a normal user with Samba

12. Samba PDC & W2K backups

13. W2K File syncronisation vs. Samba after wintertime