Fw: [Samba] Failed to initialize group mapping

Bruno Lopes de Souza Benchimol brunobenchimol at terra.com.br
Thu May 13 02:02:31 GMT 2004


I asked this question on samba list, but i got no help at all, im not sure
if that can be a technical bug, im not sure, so im reposting it here, i will
appreciate any help,

thanks


----- Original Message ----- 
From: "brunobenchimol" <brunobenchimol at terra.com.br>
To: "samba" <samba at lists.samba.org>
Sent: Monday, May 10, 2004 9:45 AM
Subject: [Samba] Failed to initialize group mapping


Im getting basically to "bugs" into my samba ... im using samba-3.0.2a
(planning to upgrade soon, but atm i cant stop the service)
im using log level = 10


my basic problem is:


May 10 09:42:13 smb smbd[850]: [2004/05/10 09:42:13, 0]
groupdb/mapping.c:init_group_mapping(139)
May 10 09:42:13 smb smbd[850]:   Failed to open group mapping database
May 10 09:42:13 smb smbd[850]: [2004/05/10 09:42:13, 0]
groupdb/mapping.c:get_group_from_gid(655)
May 10 09:42:13 smb smbd[850]:   failed to initialize group
mappingget_alias_user_groups: gid 10012. not found
May 10 09:42:13 smb smbd[850]: [2004/05/10 09:42:13, 0]
groupdb/mapping.c:init_group_mapping(139)
May 10 09:42:13 smb smbd[850]:   Failed to open group mapping database
May 10 09:42:13 smb smbd[850]: [2004/05/10 09:42:13, 0]
groupdb/mapping.c:get_group_from_gid(655)
May 10 09:42:13 smb smbd[850]:   failed to initialize group
mappingget_alias_user_groups: gid of user flavio.ribeiro doesn't exist.
Check your /etc/passwd and /etc/group files


i have looked into mapping.c and found this:

  tdb = tdb_open_log(lock_path("group_mapping.tdb"), 0, TDB_DEFAULT,
O_RDWR|O_CREAT, 0600);
         if (!tdb) {
          DEBUG(0,("Failed to open group mapping database\n"));
                 return False;
tdb = tdb_open_log(lock_path("group_mapping.tdb"), 0, TDB_DEFAULT,
O_RDWR|O_CREAT, 0600);
         if (!tdb) {
                 DEBUG(0,("Failed to open group mapping database\n"));
                 return False;

as far as i can see its uses mode 0600 and i dont know why it starts bugging
me, i have tried the following steps to see it could solve the problem, but
it didnt.

smb:/usr/local/samba/var/locks# ls -l group_mapping.tdb
-rw-r--r--    1 root     staff        8192 May 10 05:47 group_mapping.tdb

everyone can read, and i still get those problems, as far as i can see thats
the file.

smb:/usr/local/samba/var/locks# find / -name group_mapping.tdb -print
/usr/local/samba/var/locks/group_mapping.tdb


and because of this problem i think it aint executing the netlogon most of
the times that happens (if i logon again with the user, the problem is
solved) since i use my netlogon based on groups and many of my shares are
based too, if samba cant map it, i will get troubles.

this samba server is already in production so i cant "play" with it unless i
warn first. hope i can get this problem solved.

---
and this one which aint too bad:
for no reason i get sometimes those lines:

May 10 09:37:06 smb smbd[823]: [2004/05/10 09:37:06, 0]
smbd/service.c:make_connection(857)
May 10 09:37:06 smb smbd[823]:   3814 (192.168.2.44) couldn't find service
May 10 09:37:06 smb smbd[823]: [2004/05/10 09:37:06, 0]
printing/pcap.c:pcap_printername_ok(253)
May 10 09:37:06 smb smbd[823]:   Attempt to locate null printername!
Internal error?
May 10 09:37:06 smb smbd[823]: [2004/05/10 09:37:06, 0]
smbd/service.c:make_connection(857)
May 10 09:37:06 smb smbd[823]:   3814 (192.168.2.44) couldn't find service
May 10 09:37:12 smb smbd[572]: [2004/05/10 09:37:12, 0]
lib/substitute.c:alloc_sub_basic(500)
May 10 09:37:12 smb smbd[572]:   alloc_sub_basic: NULL source string!  This
should not happen
May 10 09:37:15 smb smbd[572]: [2004/05/10 09:37:15, 0]
lib/substitute.c:alloc_sub_basic(500)
May 10 09:37:15 smb smbd[572]:   alloc_sub_basic: NULL source string!  This
shou

although i get no null strings in my printcap (windows bugs? prolly)


smb:/usr/local/samba/var/locks# cat /etc/printcap.cups
xerox1andar:
xerox2andar:
xerox3andar:
xerox470st:
xerox4andar:
smb:/usr/local/samba/var/locks#


testparm:

Press enter to see a dump of your service definitions
        load printers = Yes
        printcap name = /etc/printcap.cups
        addprinter command =
        deleteprinter command =
        show add printer wizard = Yes
        printer admin =
        min print space = 0
        max reported print jobs = 0
        max print jobs = 1000
        printable = No
        printing = cups
        print command = lpr -r -P'%p' %s
        printer name =


----

ok this is something which doesnt make me go crazy for now...


thanks in advance
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 05/05/2004 / Versão: 1.5.2
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/




More information about the samba-technical mailing list