[Samba] Newbie to 3.0.1 and having problems

David Flood dpf at scms.rgu.ac.uk
Thu Jan 22 17:53:12 GMT 2004


I have just upgraded from samba 2.2.7a to 3.0.1. For this upgrade I backed up my old 
samba installation, installed the new configuration and copied over the contents of 
the private directory which was secrets.tdb  and smbpasswd. I ran testparm and 
everything seemed fine so I run samba and H drives come back up perfectly. 

I think I have 3 issues:

1)
I noticed in /var/adm/messages that entries like the following were appearing:

Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed

I did not know what this meant but the H drives seemed to be working fine. Then I 
started to get reports that printing was not working or at the very best was working 
partially/intermittently. 


2)
I also realised that PC's that had been in the domain in the old samba but had been 
dropped back down to workgroup before upgrading could not be re-added to the domain. 
Giving the error 'A domain controller for the COMP domain could not be contacted'. 
Also looking at the documentation I'm a bit confused about this 'add machine script' 
field in smb.conf. Typical examples seem to call /usr/sbin/adduser and add the 
machine name to /etc/passwd and /etc/shadow but all my machines are already listed in 
those files from the previous version of samba. It should also be noted that I don't 
want samba to handle user profiles as we have Novell.


3)
I've also noticed error messages such as:

Jan 22 17:26:05 galahad smbd[15844]: [ID 702911 daemon.error]   
get_domain_user_groups: primary gid of user [u0207372] is not a Domain group !
Jan 22 17:26:05 galahad smbd[15844]: [ID 702911 daemon.error]   
get_domain_user_groups: You should fix it, NT doesn't like that

u0207372 is a user on my network and since we use samba for authentication is in the 
smbpasswd file.


Thanks in advance.

Here is the top part of my smb.conf:

----- smb.conf start -----

[global]
        domain logons = yes
        security = user
        passdb backend = smbpasswd
#       wins support = yes          # tried with this on and off
        create mask = 0600
        directory mask = 0700
        log file = /var/samba/log.%m
        log level = 1
        max log size = 0
        interfaces = 10.52.1.1 10.42.1.1
        preferred master = Yes
        domain master = Yes
        local master = Yes
        security mask = 0777
        level2oplocks = no
        encrypt passwords = Yes
        dont descend = /proc,/dev,/etc,/usr
        printing = SYSV
        server string = Samba Server
        workgroup = COMP
        hosts allow = 127. 10. 172.16.
        netbios name = GALAHAD
 SO_SNDBUF=16384
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
        min passwd length = 6
        os level = 99
        oplocks = no
        use client driver = yes

[netlogon]
        path = /tmp

----- smb.conf end -------


Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error] [2004/01/22 17:24:16, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error] [2004/01/22 17:24:16, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error] [2004/01/22 17:24:16, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:24:16 galahad smbd[19517]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:24:45 galahad smbd[19517]: [ID 702911 daemon.error] [2004/01/22 17:24:45, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:24:45 galahad smbd[19517]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:25:21 galahad smbd[15844]: [ID 702911 daemon.error] [2004/01/22 17:25:21, 
0] rpc_server/srv_util.c:get_domain_user_groups(372)
Jan 22 17:25:21 galahad smbd[15844]: [ID 702911 daemon.error]   
get_domain_user_groups: primary gid of user [u0207372] is not a Domain group !
Jan 22 17:25:21 galahad smbd[15844]: [ID 702911 daemon.error]   
get_domain_user_groups: You should fix it, NT doesn't like that
Jan 22 17:26:05 galahad smbd[15844]: [ID 702911 daemon.error] [2004/01/22 17:26:05, 
0] rpc_server/srv_util.c:get_domain_user_groups(372)
Jan 22 17:26:05 galahad smbd[15844]: [ID 702911 daemon.error]   
get_domain_user_groups: primary gid of user [u0207372] is not a Domain group !
Jan 22 17:26:05 galahad smbd[15844]: [ID 702911 daemon.error]   
get_domain_user_groups: You should fix it, NT doesn't like that
Jan 22 17:27:48 galahad smbd[17222]: [ID 702911 daemon.error] [2004/01/22 17:27:48, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:27:48 galahad smbd[17222]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:27:48 galahad smbd[17222]: [ID 702911 daemon.error] [2004/01/22 17:27:48, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:27:48 galahad smbd[17222]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:27:48 galahad smbd[17222]: [ID 702911 daemon.error] [2004/01/22 17:27:48, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:27:48 galahad smbd[17222]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed
Jan 22 17:28:18 galahad smbd[17222]: [ID 702911 daemon.error] [2004/01/22 17:28:18, 
0] smbd/connection.c:register_message_flags(220)
Jan 22 17:28:18 galahad smbd[17222]: [ID 702911 daemon.error]   
register_message_flags: tdb_fetch failed







More information about the samba mailing list