As the title says. Running oS 11.4 KDE 4.8.2, tried with samba 3.5 and 3.6 (this last from samba:STABLE repo)
Got various error messages, depending on what I was using to start nmbd (Yast’s services module, etc/init.d/nmb, etc.). Errors mentioned (from memory): socket permission denied, nmbd returned code 7 (program not running), nmb running but not used, etc.
This is /var/log/samba/log.nmbd showing when it went wrong, after an update:
[2012/04/30 21:17:15, 0] nmbd/nmbd.c:857(main)
nmbd version 3.5.7-3.5.1-257[2012/04/30 22:14:54.551204, 0] nmbd/nmbd.c:71(terminate)
Got SIGTERM: going down...3-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2012/04/30 21:17:46.709984, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
*****
Samba name server BRUNO-03 is now a local master browser for workgroup on subnet 192.168.0.3
*****
[2012/04/30 21:22:54.005734, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
*****
Samba name server BRUNO-03 is now a local master browser for workgroup on subnet 192.168.32.1
*****
[2012/04/30 21:22:54.005965, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
*****
Samba name server BRUNO-03 is now a local master browser for workgroup on subnet 192.168.26.1
*****
[2012/04/30 22:14:54.551204, 0] nmbd/nmbd.c:71(terminate)
Got SIGTERM: going down...
[2012/04/30 22:14:54, 0] nmbd/nmbd.c:860(main)
nmbd version 3.6.3-112.1-2788-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/04/30 22:14:54, 0] lib/util_sock.c:1369(create_pipe_sock)
bind failed on pipe socket /var/lib/samba/unexpected: Permission denied
[2012/04/30 22:14:54, 0] nmbd/nmbd_packets.c:48(nmbd_init_packet_server)
ERROR: nb_packet_server_create failed: NT_STATUS_ACCESS_DENIED
And this is the /var/log/messages relevant line:
May 5 17:03:43 bruno-03 kernel: 53.591265] type=1400 audit(1336248223.266:30): apparmor="DENIED" operation="open" parent=2024 profile="/usr/sbin/nmbd" name="/proc/sys/kernel/core_pattern" pid=2025 comm="nmbd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
If I disable Apparmor in Yast nmbd loads. In Yast’s Apparmor profile editor module I can’t set nmbd to executable. What gives?