ministore ~ # cat /etc/conf.d/samba # Add "winbind" to the daemon_list if you also want winbind to start. # Replace "smbd nmbd" by "samba4" if you want the active directory domain controller part or the ntvfs # file server part or the rpc proxy to start. # Note that samba4 controls 'smbd' by itself, thus it can't be started manually. You can, however, # tweak the behaviour of a samba4-controlled smbd by modifying your '/etc/samba/smb.conf' file # accordingly. daemon_list="samba4" #---------------------------------------------------------------------------- # Daemons calls: <daemon_name>_<command_option> #---------------------------------------------------------------------------- my_service_name="samba" my_service_PRE="unset TMP TMPDIR" my_service_POST="" #---------------------------------------------------------------------------- # Daemons calls: <daemon_name>_<command_option> #---------------------------------------------------------------------------- smbd_start_options="-D" smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}" smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd" smbd_reload="killall -HUP smbd" nmbd_start_options="-D" nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}" nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd" nmbd_reload="killall -HUP nmbd" samba4_start_options="" samba4_start="start-stop-daemon --start --exec /usr/sbin/samba -- ${samba4_start_options}" samba4_stop="start-stop-daemon --stop --exec /usr/sbin/samba" samba4_reload="killall -HUP samba" winbind_start_options="" winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}" winbind_stop="start-stop-daemon --stop --exec /usr/sbin/winbindd" winbind_reload="killall -HUP winbindd" ministore ~ # /etc/init.d/samba start * samba -> start: samba4 ... ministore ~ # ps aux | grep mb root 6034 0.3 0.1 89804 43156 ? Ss 14:54 0:00 samba: root process root 6042 0.0 0.0 89804 25092 ? S 14:54 0:00 samba: task[s3fs_parent] root 6043 0.0 0.0 89804 26748 ? S 14:54 0:00 samba: task[dcesrv] root 6044 0.0 0.0 89808 23824 ? S 14:54 0:00 samba: tfork waiter process root 6045 0.0 0.0 89804 27740 ? S 14:54 0:00 samba: task[nbtd] root 6046 0.6 0.1 93812 50480 ? Ss 14:54 0:00 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground root 6047 0.0 0.0 89804 24584 ? S 14:54 0:00 samba: task[wrepl] root 6048 0.8 0.0 89804 29224 ? S 14:54 0:00 samba: task[ldapsrv] root 6049 0.0 0.0 89804 25336 ? S 14:54 0:00 samba: task[cldapd] root 6050 0.0 0.0 89804 31456 ? S 14:54 0:00 samba: conn[kdc_tcp] c[ipv4:192.168.54.6:54298] s[ipv4:192.168.54.6:88] server_id[6050.43] root 6051 2.5 0.0 90464 32096 ? S 14:54 0:00 samba: task[dreplsrv] root 6052 0.0 0.0 89804 25092 ? S 14:54 0:00 samba: task[winbindd_parent] root 6069 0.0 0.0 89804 25160 ? S 14:54 0:00 samba: task[ntp_signd] root 6070 0.0 0.0 89808 23824 ? S 14:54 0:00 samba: tfork waiter process root 6071 0.1 0.1 89804 35772 ? S 14:54 0:00 samba: task[kccsrv] root 6089 0.0 0.0 89804 26984 ? S 14:54 0:00 samba: task[dnsupdate] root 6090 0.0 0.0 90224 29880 ? S 14:54 0:00 samba: task[dns] root 6097 0.0 0.0 90948 24336 ? S 14:54 0:00 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground root 6098 0.0 0.0 90948 24336 ? S 14:54 0:00 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground root 6099 0.0 0.0 94336 26132 ? S 14:54 0:00 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground 1212 6102 0.1 0.1 94000 39208 ? S 14:54 0:00 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground root 6686 0.0 0.0 1500 636 pts/3 S+ 14:55 0:00 grep --colour=auto mb ministore ~ # /etc/init.d/samba status * status: crashed ministore ~ # /etc/init.d/samba stop * samba -> stop: samba4 ... * start-stop-daemon: no matching processes found
ministore ~ # grep -r . /run/samba/*.pid /run/samba/samba.pid:6034 /run/samba/smbd.pid:6046 /run/samba/winbindd.pid:6072 ministore ~ # ps aux | grep winbind root 6052 0.0 0.0 89804 25092 ? S 14:54 0:00 samba: task[winbindd_parent] root 6072 0.0 0.1 89136 45820 ? Ss 14:54 0:00 /usr/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
Please post your emerge --info net-fs/samba and share your configuration. Anything in the error log?
I did not realize I'm running samba from the musl overlay. Should I report it here instead: https://github.com/gentoo/musl/issues? emerge --info net-fs/samba: Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.0/musl/hardened, gcc-9.2.0, musl-1.1.24, 5.3.11-00302-g013454ea631f x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.3.11-00302-g013454ea631f-x86_64-Intel-R-_Xeon-R-_CPU_E3-1285L_v4_@_3.40GHz-with-gentoo-2.6 KiB Mem: 32916152 total, 17642148 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 29 Nov 2019 12:15:01 +0000 Head commit of repository gentoo: 91f13f3d998afd099a54be7c5b3f485d0792f94f Head commit of repository musl: 353f38307cc54ed3b71e85e63761e8a67bc2338a Head commit of repository stintel: abb4fc2c146f7a56c94588a68cf84250da1d30f9 sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.28.2-r1::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo dev-util/cmake: 3.14.6::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.13::musl sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.31.1-r6::gentoo, 2.32-r1::gentoo sys-devel/gcc: 9.2.0-r2::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/musl: 1.1.24::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync.exclude sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 misc location: /usr/local/portage/misc masters: gentoo musl location: /var/repo/musl sync-type: git sync-uri: https://github.com/gentoo/musl.git masters: gentoo stintel location: /var/repo/stintel sync-type: git sync-uri: https://github.com/stintel/gentoo-overlay.git masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE freedist intel-ucode linux-fw-redistributable no-source-code unRAR" CBUILD="x86_64-gentoo-linux-musl" CFLAGS="-ggdb -O2 -pipe -march=broadwell -mabm -mrtm --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fstack-clash-protection -fstack-protector-strong" CHOST="x86_64-gentoo-linux-musl" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-ggdb -O2 -pipe -march=broadwell -mabm -mrtm --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fstack-clash-protection -fstack-protector-strong" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.leaseweb.com/gentoo" INSTALL_MASK="charset.alias" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync.exclude" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl aes amd64 avx avx2 btrfs bzip2 caps crypt cryptsetup cxx efi f16c fma3 hardened iconv ipv6 libtirpc mmx mmxext ncurses nls nptl openmp pam pclmul pcre pie popcnt readline seccomp smp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= net-fs/samba-4.8.6-r2::musl was built with the following: USE="acl addc addns ads client gnutls ldap pam python winbind -ceph -cluster -cups -debug (-dmapi) (-fam) -gpg -iprint -quota (-selinux) -syslog (-system-heimdal) -system-mitkrb5 -systemd -test -zeroconf" PYTHON_TARGETS="python2_7" CFLAGS="-ggdb -O2 -pipe -march=broadwell -mtune=broadwell -mabm -mrtm -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fstack-clash-protection -fstack-protector-strong" CXXFLAGS="-ggdb -O2 -pipe -march=broadwell -mtune=broadwell -mabm -mrtm -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fstack-clash-protection -fstack-protector-strong" FEATURES="protect-owned unknown-features-warn parallel-fetch splitdebug userpriv assume-digests binpkg-dostrip preserve-libs config-protect-if-modified merge-sync distlocks unmerge-orphans sandbox pid-sandbox news fixlafiles userfetch network-sandbox sfperms binpkg-logs strict usersync binpkg-docompress ebuild-locks usersandbox unmerge-logs ipc-sandbox xattr"
(In reply to Stijn Tintel from comment #3) > I did not realize I'm running samba from the musl overlay. Should I report > it here instead: https://github.com/gentoo/musl/issues? I guess so.. Or at least share your config, it's hard to discover what's broken. I'm running 4.8.6 and it's working fine.
# Global parameters [global] workgroup = DOMAIN realm = ad.domain.net netbios name = MINISTORE server role = active directory domain controller dns forwarder = 192.168.1.2 winbind use default domain = yes idmap_ldb:use rfc2307 = yes #winbind nss info = rfc2307 #idmap config * : backend = tdb #idmap config * : range = 10000000-20000000 #idmap config DOMAIN:backend = ad #idmap config DOMAIN:schema_mode = rfc2307 #idmap config DOMAIN:unix_primary_group = yes #idmap config DOMAIN:unix_nss_info = no #idmap config DOMAIN:range = 100-4000000 #template homedir = "/home/%D/%U" template shell = /bin/bash printcap name = /dev/null load printers = no printing = bsd debug timestamp = yes #log file = /var/log/samba/log.%m log level = 3 max log size = 5000 unix extensions = yes bind interfaces only = yes interfaces = lo 192.168.54.0/24 #socket options = IPTOS_THROUGHPUT SO_SNDBUF=8192 TCP_NODELAY #socket options = IPTOS_THROUGHPUT SO_RCVBUF=16384 SO_SNDBUF=16384 TCP_NODELAY socket options = IPTOS_THROUGHPUT TCP_NODELAY aio read size = 16384 aio write size = 16384 client ipc signing = disabled [home] path = /home read only = No [netlogon] path = /var/lib/samba/sysvol/ad.domain.net/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No [profiles] path = /srv/samba/profiles browseable = no read only = no guest ok = no valid users = %U admin users = @"domain admins" map hidden = yes map system = yes create mask = 0611 directory mask = 0711 #profile acls = yes csc policy = disable hide files = /desktop.ini/outlook*.lnk/*Briefcase*/ [kodi] admin users = Administrator, user1 browseable = yes comment = Kodi guest ok = no path = /srv/kodi public = no use sendfile = yes write list = Administrator, user1, user2 [OS] use sendfile = yes comment = Public Share path = /srv/public/OS hide files = /lost+found/ public = yes guest ok = yes browseable = yes create mask = 0644 directory mask = 0755 write list = Administrator, user1 admin users = Administrator, user1 veto files = /._*/.DS_Store/ delete veto files = yes [public] ;strict locking = no ;oplocks = no use sendfile = yes comment = Public Share path = /srv/public #path = /mnt/temp hide files = /lost+found/ public = yes guest ok = no browseable = yes create mask = 0644 directory mask = 0755 write list = Administrator, user1, user2, user3 admin users = Administrator, user1 veto files = /._*/.DS_Store/ delete veto files = yes [private] ;strict locking = no ;oplocks = no use sendfile = yes comment = Private Share path = /srv/private hide files = /lost+found/ public = no guest ok = no browseable = yes create mask = 0600 directory mask = 0700 write list = user1 admin users = user1 veto files = /._*/.DS_Store/ delete veto files = yes [scan] ;strict locking = no ;oplocks = no use sendfile = yes comment = Network Scanning path = /srv/scan hide files = /lost+found/ public = no guest ok = no browseable = yes create mask = 0600 directory mask = 0700 write list = user1, @printers admin users = user1 veto files = /._*/.DS_Store/ delete veto files = yes
Looks like this was fixed in bug 652896 for ::gentoo repo but ::musl didn't get the memo
Okay I just bumped to 4.10.2 and added the fix from bug #652896. Please test and let me know Aside: @bkohler How does the samba team feel about adding a conditional patch for musl so we can move this into the tree? We need to disable netgroup support. This only requires the following patch. Or maybe this can be done by some env var, I'm not sure how the wscript is used. --- a/source3/wscript +++ b/source3/wscript @@ -600,8 +600,8 @@ msg.msg_accrightslen = sizeof(fd); headers='unistd.h sys/types.h dirent.h', define='HAVE_DIRENT_D_OFF') - if (conf.CONFIG_SET('HAVE_YP_GET_DEFAULT_DOMAIN')): - conf.DEFINE('HAVE_NETGROUP', '1') + #if (conf.CONFIG_SET('HAVE_YP_GET_DEFAULT_DOMAIN')): + # conf.DEFINE('HAVE_NETGROUP', '1') # Look for CUPS if Options.options.with_cups: