I've got a home network with using win2k pro.  Do I need to set Samba up as
a pdc for the w2k machines to connect?  Currently I've got my w2k machines
set up as a workgroup and simply set up Samba as a member of that workgroup.
My problem is that I cannot connect to it.  I see my samba box in my network
neighborhood, however, I cannot browse it.  I'm running Samba 2.2.2 that
came with Mandrake 8.1
My smb.conf
# Global parameters
[global]
        workgroup = CCNETWORK
        netbios name = LINUX
        server string = Samba Server %v
        encrypt passwords = Yes
        update encrypted = Yes
        map to guest = Bad User
        root directory = /usr/samba
        log file = /var/log/samba/log.%m
        max log size = 50
        large readwrite = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = lpstat
        preferred master = False
        local master = No
        domain master = False
        printing = cups
[public]
        path = /usr/samba/public
        read only = No
        create mask = 0766
        guest ok = Yes
When attemt to connect, I get this in my log.smbd
[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
  Unable to open new log file /var/log/samba/log.linux: No such file or
directory
[2002/02/21 09:04:51, 0] param/params.c:OpenConfFile(543)
  params.c:OpenConfFile() - Unable to open configuration file
"/etc/samba/smb.conf":
        No such file or directory
[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
  Unable to open new log file /var/log/samba/log.linux: No such file or
directory
[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
  Unable to open new log file /var/log/samba/log.linux: No such file or
directory
[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
  Unable to open new log file /var/log/samba/log.linux: No such file or
directory
[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
  Unable to open new log file /var/log/samba/log.linux: No such file or
directory
Any ideas?
smb.conf does in fact reside in /etc/samba. Checked rechecked permissions are [root@mail samba]# cd /etc/samba [root@mail samba]# pwd /etc/samba [root@mail samba]# ls -l total 14 -rw-r--r-- 1 root root 65 Feb 19 18:45 lmhosts -rw-r--r-- 1 root root 41 Feb 12 06:57 MACHINE.SID -rw------- 1 root root 8192 Feb 21 09:04 secrets.tdb -rw-r--r-- 1 root root 953 Feb 20 19:20 smb.conf -rw------- 1 root root 523 Feb 21 09:04 smbpasswd -rw-r--r-- 1 root root 117 Feb 19 19:41 smbusers -rw-r--r-- 1 root root 29 Feb 20 15:36 user.map [root@mail samba]# cd /var/log/samba [root@mail samba]# pwd /var/log/samba [root@mail samba]# ls -l total 128 -rw-rw-rw- 1 root root 5 Feb 19 19:15 log.daniel -rw-rw-rw- 1 root root 0 Feb 19 19:15 log.linux -rw-r--r-- 1 root root 4624 Feb 20 19:16 log.nmbd -rw-r--r-- 1 root root 754 Feb 17 04:02 log.nmbd.1.gz -rw-r--r-- 1 root root 461 Feb 12 04:02 log.nmbd.2.gz -rw-r--r-- 1 root root 4532 Feb 21 12:27 log.smbd -rw-r--r-- 1 root root 375 Feb 17 04:02 log.smbd.1.gz -rw-r--r-- 1 root root 117 Feb 11 21:20 log.smbd.2.gz -rw-r--r-- 1 root root 87356 Feb 20 17:06 log.smbd.old -----Original Message----- From: Brian Ipsen [mailto:Brian.Ipsen@andebakken.dk] Sent: Saturday, February 23, 2002 2:37 PM To: 'Daniel S. Carlson' Subject: RE: [Samba] Howto Samba and Win2K? Hi! Your logfile says a lot:> Unable to open new log file /var/log/samba/log.linux: No > such file or directoryDoes this directory/path exist ? From the errors it looks like the directory named samba doesn't exist in /var/log> params.c:OpenConfFile() - Unable to open configuration file > "/etc/samba/smb.conf": > No such file or directoryIs your configuration file located as /etc/samba/smb.conf ? If not, place it there. /Brian> -----Original Message----- > From: samba-admin@lists.samba.org > [mailto:samba-admin@lists.samba.org]On > Behalf Of Daniel S. Carlson > Sent: 23. februar 2002 21:01 > To: samba@lists.samba.org > Subject: [Samba] Howto Samba and Win2K? > > > I've got a home network with using win2k pro. Do I need to > set Samba up as > a pdc for the w2k machines to connect? Currently I've got my > w2k machines > set up as a workgroup and simply set up Samba as a member of > that workgroup. > My problem is that I cannot connect to it. I see my samba > box in my network > neighborhood, however, I cannot browse it. I'm running Samba > 2.2.2 that > came with Mandrake 8.1 > > > My smb.conf > > # Global parameters > [global] > workgroup = CCNETWORK > netbios name = LINUX > server string = Samba Server %v > encrypt passwords = Yes > update encrypted = Yes > map to guest = Bad User > root directory = /usr/samba > log file = /var/log/samba/log.%m > max log size = 50 > large readwrite = Yes > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > printcap name = lpstat > preferred master = False > local master = No > domain master = False > printing = cups > > [public] > path = /usr/samba/public > read only = No > create mask = 0766 > guest ok = Yes > > When attemt to connect, I get this in my log.smbd > > [2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.linux: No > such file or > directory > [2002/02/21 09:04:51, 0] param/params.c:OpenConfFile(543) > params.c:OpenConfFile() - Unable to open configuration file > "/etc/samba/smb.conf": > No such file or directory > [2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.linux: No > such file or > directory > [2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.linux: No > such file or > directory > [2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.linux: No > such file or > directory > [2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337) > Unable to open new log file /var/log/samba/log.linux: No > such file or > directory > > Any ideas? > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Hi Daniel,
I know for a fact that Samba does NOT have to be set up as a PDC for Win2k 
to use it. I've had Samba 2.0.10 on a RedHat 7.1 machine running here for 
almost 6 months with Win2k, Win98SE, Win95b and WinXP machines all 
connecting to it happily. Samba 2.0.10, to the best of my knowledge, cannot 
actually be a PDC, so Samba 2.2.x SHOULD be able to handle Win2k machines 
without being a PDC.
I noticed you had the setting "root directory = /usr/samba".
Here's a
snippet from the smb.conf man page (taken from Samba 2.0.10):
  Adding a "root directory" entry other than "/" adds an
extra level of
security, but at a price. It absolutely ensures that no access is given to 
files not in the sub-tree specified in  the  "root  directory" option,
*including* some files needed for complete operation of the server. To 
maintain full operability of the server you will need to mirror some system 
files into the "root directory"  tree.  In  particular you  will need
to
mirror /etc/passwd (or a subset of it), and any binaries or configuration 
files needed for printing (if required). The set of files that must be 
mirrored is operating system dependent.
               Default:      root directory = /
               Example:      root directory = /homes/smb
I see from your log files that Samba can't even write log files for your 
machine. It looks to me like you've set the above root directory but not 
mirrored the necessary system files as the help suggests. The system is 
actually looking for "/usr/samba/var/log/samba/" to write your log
files.
Would I be correct in assuming that directory doesn't exist? Try removing 
that "root directory" entry and see if that helps. :)
Anthony.
At 07:00 a 24/02/2002, it was written:
>I've got a home network with using win2k pro.  Do I need to set Samba up
as
>a pdc for the w2k machines to connect?  Currently I've got my w2k
machines
>set up as a workgroup and simply set up Samba as a member of that workgroup.
>My problem is that I cannot connect to it.  I see my samba box in my network
>neighborhood, however, I cannot browse it.  I'm running Samba 2.2.2 that
>came with Mandrake 8.1
>
>
>My smb.conf
>
># Global parameters
>[global]
>         workgroup = CCNETWORK
>         netbios name = LINUX
>         server string = Samba Server %v
>         encrypt passwords = Yes
>         update encrypted = Yes
>         map to guest = Bad User
>         root directory = /usr/samba
>         log file = /var/log/samba/log.%m
>         max log size = 50
>         large readwrite = Yes
>         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>         printcap name = lpstat
>         preferred master = False
>         local master = No
>         domain master = False
>         printing = cups
>
>[public]
>         path = /usr/samba/public
>         read only = No
>         create mask = 0766
>         guest ok = Yes
>
>When attemt to connect, I get this in my log.smbd
>
>[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
>   Unable to open new log file /var/log/samba/log.linux: No such file or
>directory
>[2002/02/21 09:04:51, 0] param/params.c:OpenConfFile(543)
>   params.c:OpenConfFile() - Unable to open configuration file
>"/etc/samba/smb.conf":
>         No such file or directory
>[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
>   Unable to open new log file /var/log/samba/log.linux: No such file or
>directory
>[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
>   Unable to open new log file /var/log/samba/log.linux: No such file or
>directory
>[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
>   Unable to open new log file /var/log/samba/log.linux: No such file or
>directory
>[2002/02/21 09:04:51, 0] lib/debug.c:reopen_logs(337)
>   Unable to open new log file /var/log/samba/log.linux: No such file or
>directory
>
>Any ideas?
----------------------------
Anthony (aslan@ispdr.net.au)
----------------------------