login
Wed 20 of Oct, 2021 (07:25 UTC)

[root@madeira.eng.br ~]#

Linux - It is now safe to turn on your computer

atualizar cache imprimir

Problemas comuns na configuração do Samba

Criada por: Frederico Madeira, última modificação em: Wed 01 of Nov, 2006 (21:25 UTC)

01/11/2006 - Samba no Fedora Core 5

Na versão do samba do FC5, os desenvolvedores fizeram uma alteração na sintaxe do smb.conf que quando utilizamos os mesmos arquivos das versões anteriores recebemos o seguinte erro no arquivo /var/log/messages:

Nov 1 19:16:32 mail smbd5660: 2006/11/01 19:16:32, 0 lib/fault.c:fault_report(41)
Nov 1 19:16:32 mail smbd5660: ============================================================
Nov 1 19:16:32 mail smbd5660: 2006/11/01 19:16:32, 0 lib/fault.c:fault_report(42)
Nov 1 19:16:32 mail smbd5660: INTERNAL ERROR: Signal 11 in pid 5660 (3.0.23c-1.fc5)
Nov 1 19:16:32 mail smbd5660: Please read the Trouble-Shooting section of the Samba3-HOWTO
Nov 1 19:16:32 mail smbd5660: 2006/11/01 19:16:32, 0 lib/fault.c:fault_report(44)
Nov 1 19:16:33 mail smbd5660:
Nov 1 19:16:33 mail smbd5660: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
Nov 1 19:16:33 mail smbd5660: 2006/11/01 19:16:33, 0 lib/fault.c:fault_report(45)
Nov 1 19:16:33 mail smbd5660:
=========================================================
Nov 1 19:16:33 mail smbd5660: 2006/11/01 19:16:33, 0 lib/util.c:smb_panic(1614)
Nov 1 19:16:33 mail smbd5660: PANIC (pid 5660): internal error
Nov 1 19:16:33 mail smbd5660: 2006/11/01 19:16:33, 0 lib/util.c:log_stack_trace(1721)
Nov 1 19:16:33 mail smbd5660: BACKTRACE: 19 stack frames:
Nov 1 19:16:33 mail smbd5660: #0 smbd(log_stack_trace+0x2d) 0xa2f8ad
Nov 1 19:16:33 mail smbd5660: #1 smbd(smb_panic+0x5d) 0xa2f9dd
Nov 1 19:16:33 mail smbd5660: #2 smbd 0xa1b51a
Nov 1 19:16:33 mail smbd5660: #3 0x2da420
Nov 1 19:16:33 mail smbd5660: #4 /lib/libc.so.6(__strdup+0x1f) 0x5f0893
Nov 1 19:16:33 mail smbd5660: #5 /lib/libnsl.so.1(nis_list+0x5d2) 0x3cbb5f
Nov 1 19:16:33 mail smbd5660: #6 /lib/libnss_nisplu.so.2(_nss_nisplus_setnetgrent+0x8f) 0x2cb62e
Nov 1 19:16:33 mail smbd5660: #7 /lib/libc.so.6(innetgr+0xb2) 0x66bd05
Nov 1 19:16:33 mail smbd5660: #8 smbd(user_in_netgroup+0x65) 0x8661e5
Nov 1 19:16:33 mail smbd5660: #9 smbd(token_contains_name_in_list+0x23d) 0x868bdd
Nov 1 19:16:33 mail smbd5660: #10 smbd(user_ok_token+0x4f) 0x868fcf
Nov 1 19:16:33 mail smbd5660: #11 smbd 0x8c688f
Nov 1 19:16:33 mail smbd5660: #12 smbd(make_connection+0x194) 0x8c7fa4
Nov 1 19:16:33 mail smbd5660: #13 smbd(reply_tcon_and_X+0x21d) 0x88b8ed
Nov 1 19:16:33 mail smbd5660: #14 smbd 0x8c30e0
Nov 1 19:16:33 mail smbd5660: #15 smbd(smbd_process+0x7ab) 0x8c421b
Nov 1 19:16:33 mail smbd5660: #16 smbd(main+0xbd0) 0xaddf90
Nov 1 19:16:33 mail smbd5660: #17 /lib/libc.so.6(__libc_start_main+0xdc) 0x59c4e4
Nov 1 19:16:33 mail smbd5660: #18 smbd 0x84e701
Nov 1 19:16:33 mail smbd5660: 2006/11/01 19:16:33, 0 lib/fault.c:dump_core(173)
Nov 1 19:16:33 mail smbd5660: dumping core in /var/log/samba/cores/smbd
Nov 1 19:16:33 mail smbd5660:
Nov 1 19:16:33 mail smbd5661: 2006/11/01 19:16:33, 0 lib/fault.c:fault_report(41)
Nov 1 19:16:33 mail smbd5661:
=========================================================
Nov 1 19:16:33 mail smbd5661: 2006/11/01 19:16:33, 0 lib/fault.c:fault_report(42)
Nov 1 19:16:33 mail smbd5661: INTERNAL ERROR: Signal 11 in pid 5661 (3.0.23c-1.fc5)
Nov 1 19:16:33 mail smbd5661: Please read the Trouble-Shooting section of the Samba3-HOWTO
Nov 1 19:16:33 mail smbd5661: 2006/11/01 19:16:33, 0 lib/fault.c:fault_report(44)
Nov 1 19:16:33 mail smbd5661:
Nov 1 19:16:34 mail smbd5661: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
Nov 1 19:16:34 mail smbd5661: 2006/11/01 19:16:34, 0 lib/fault.c:fault_report(45)
Nov 1 19:16:34 mail smbd5661:
============================================================
Nov 1 19:16:34 mail smbd5661: 2006/11/01 19:16:34, 0 lib/util.c:smb_panic(1614)
Nov 1 19:16:34 mail smbd5661: PANIC (pid 5661): internal error
Nov 1 19:16:34 mail smbd5661: 2006/11/01 19:16:34, 0 lib/util.c:log_stack_trace(1721)
Nov 1 19:16:34 mail smbd5661: BACKTRACE: 19 stack frames:
Nov 1 19:16:34 mail smbd5661: #0 smbd(log_stack_trace+0x2d) 0xa2f8ad
Nov 1 19:16:34 mail smbd5661: #1 smbd(smb_panic+0x5d) 0xa2f9dd
Nov 1 19:16:34 mail smbd5661: #2 smbd 0xa1b51a
Nov 1 19:16:34 mail smbd5661: #3 0x2da420
Nov 1 19:16:34 mail smbd5661: #4 /lib/libc.so.6(__strdup+0x1f) 0x5f0893
Nov 1 19:16:34 mail smbd5661: #5 /lib/libnsl.so.1(nis_list+0x5d2) 0x3cbb5f
Nov 1 19:16:34 mail smbd5661: #6 /lib/libnss_nisplu.so.2(_nss_nisplus_setnetgrent+0x8f) 0x2cb62e
Nov 1 19:16:34 mail smbd5661: #7 /lib/libc.so.6(innetgr+0xb2) 0x66bd05
Nov 1 19:16:34 mail smbd5661: #8 smbd(user_in_netgroup+0x65) 0x8661e5
Nov 1 19:16:34 mail smbd5661: #9 smbd(token_contains_name_in_list+0x23d) 0x868bdd
Nov 1 19:16:34 mail smbd5661: #10 smbd(user_ok_token+0x4f) 0x868fcf
Nov 1 19:16:34 mail smbd5661: #11 smbd 0x8c688f
Nov 1 19:16:34 mail smbd5661: #12 smbd(make_connection+0x194) 0x8c7fa4
Nov 1 19:16:34 mail smbd5661: #13 smbd(reply_tcon_and_X+0x21d) 0x88b8ed
Nov 1 19:16:34 mail smbd5661: #14 smbd 0x8c30e0
Nov 1 19:16:34 mail smbd5661: #15 smbd(smbd_process+0x7ab) 0x8c421b
Nov 1 19:16:34 mail smbd5661: #16 smbd(main+0xbd0) 0xaddf90
Nov 1 19:16:34 mail smbd5661: #17 /lib/libc.so.6(__libc_start_main+0xdc) 0x59c4e4
Nov 1 19:16:34 mail smbd5661: #18 smbd 0x84e701
Nov 1 19:16:35 mail smbd5661: 2006/11/01 19:16:35, 0 lib/fault.c:dump_core(173)
Nov 1 19:16:35 mail smbd5661: dumping core in /var/log/samba/cores/smbd

O problema é causado pelo uso das expressões valid users = @groupname, printer admins = @groupname e writelist = @groupname onde você especifica um grupo através do @grupo.
O símbolo @ foi substituído pelo + dessa forma a correta sintaxe passa a ser +grupo.
O Bug foi discutido em https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=208718

Comentários