* [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12
@ 2021-01-02 19:01 ahesford
2021-01-02 20:23 ` andry-dev
` (29 more replies)
0 siblings, 30 replies; 31+ messages in thread
From: ahesford @ 2021-01-02 19:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
There is a new pull request by ahesford against master on the void-packages repository
https://github.com/ahesford/void-packages samba
https://github.com/void-linux/void-packages/pull/27626
samba update to 4.13.3, cifs-utils update to 6.12
It seems my attempt to build in more private libraries in the 4.13.2_2 revbump breaks `smbd`, so I've reverted those library changes.
Closes #27565.
@wangp @Anachron @andry-dev @abenson please give this a test if you don't mind. Everything works for me on `x86_64`.
A patch file from https://github.com/void-linux/void-packages/pull/27626.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-samba-27626.patch --]
[-- Type: text/x-diff, Size: 11388 bytes --]
From cb5d34771ac5f783e6e48e77f584580ca208f8e3 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Sat, 2 Jan 2021 09:14:43 -0500
Subject: [PATCH 1/2] samba: update to 4.13.3.
Also revert private lib changes in da2cea569c8bcda165729b0a29555ab9ef320f76
that seem to break some installations.
Fixes #27565.
---
common/shlibs | 9 +++++++++
srcpkgs/samba/template | 29 +++++++++++++++--------------
srcpkgs/samba/update | 2 +-
3 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/common/shlibs b/common/shlibs
index 26a6259f6d2..d9319f0c221 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4004,15 +4004,19 @@ libnss_winbind.so.2 samba-4.13.2_1
libnss_wins.so.2 samba-4.13.2_1
libsamba-policy.so.0 samba-4.13.2_1
libauth-unix-token-samba4.so samba-4.13.2_1
+libauth4-samba4.so samba-4.13.3_1
libdcerpc-samba4.so samba-4.13.2_1
libdsdb-module-samba4.so samba-4.13.2_1
libgpext-samba4.so samba-4.13.2_1
+libnet-keytab-samba4.so samba-4.13.3_1
libposix-eadb-samba4.so samba-4.13.2_1
libprinting-migrate-samba4.so samba-4.13.2_1
libsamba-net-samba4.so samba-4.13.2_1
+libsamba-python-samba4.so samba-4.13.3_1
libshares-samba4.so samba-4.13.2_1
libsmbd-base-samba4.so samba-4.13.2_1
libsmbd-conn-samba4.so samba-4.13.2_1
+libsmbpasswordparser-samba4.so samba-4.13.3_1
libxattr-tdb-samba4.so samba-4.13.2_1
libdcerpc.so.0 samba-libs-4.13.2_1
libdcerpc-binding.so.0 samba-libs-4.13.2_1
@@ -4032,11 +4036,16 @@ libsmbldap.so.2 samba-libs-4.13.2_1
libwbclient.so.0 samba-libs-4.13.2_1
libcli-ldap-samba4.so samba-libs-4.13.2_1
libcliauth-samba4.so samba-libs-4.13.2_1
+libcluster-samba4.so samba-libs-4.13.3_1
libcommon-auth-samba4.so samba-libs-4.13.2_1
libdcerpc-samba-samba4.so samba-libs-4.13.2_1
+libflag-mapping-samba4.so samba-libs-4.13.3_1
libgpo-samba4.so samba-libs-4.13.2_1
+libiov-buf-samba4.so samba-libs-4.13.3_1
libndr-samba-samba4.so samba-libs-4.13.2_1
libndr-samba4.so samba-libs-4.13.2_1
+libprinter-driver-samba4.so samba-libs-4.13.3_1
libsmb-transport-samba4.so samba-libs-4.13.2_1
+libtdb-wrap-samba4.so samba-libs-4.13.3_1
libutil-cmdline-samba4.so samba-libs-4.13.2_1
libwinbind-client-samba4.so samba-libs-4.13.2_1
diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template
index 646546a27bb..86122a1a71b 100644
--- a/srcpkgs/samba/template
+++ b/srcpkgs/samba/template
@@ -1,7 +1,7 @@
# Template file for 'samba'
pkgname=samba
-version=4.13.2
-revision=3
+version=4.13.3
+revision=1
build_style=waf3
build_helper="qemu"
configure_script="buildtools/bin/waf"
@@ -26,7 +26,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.samba.org"
distfiles="http://download.samba.org/pub/samba/stable/${pkgname}-${version}.tar.gz"
-checksum=276464396a05d88b775bda01ac2eb1e5a636ccf7010b0fd28efc3d85583af2b4
+checksum=c10585d43f33656fe4e1f9ff8bf40ea57d8d5b653521c1cc198fbf4922756541
lib32disabled=yes
conf_files="/etc/pam.d/samba /etc/samba/smb.conf"
make_dirs="/etc/samba/private 0750 root root"
@@ -45,16 +45,16 @@ fi
# that shouldn't be exposed locally. For those that cannot be built in, make
# sure to install them into /usr/lib so xbps-src picks them up.
_privlibs="CHARSET3 MESSAGING_SEND MESSAGING LIBWBCLIENT_OLD addns ads \
- asn1util auth auth4 authkrb5 cmdline_contexts cmdline-credentials cli_cldap \
- cli-ldap-common cli-nbt cli_smb_common cli_spoolss clidns cluster common-auth \
- dbwrap events flag_mapping genrand gensec gse http interfaces iov_buf krb5samba \
- ldbsamba libcli_lsa3 libcli_netlogon3 libsmb messages_dgm messages_util mscat \
- msghdr msrpc3 netif net_keytab npa_tstream popt_samba3 popt_samba3_cmdline \
- printer_driver registry replace samba-cluster-support samba-debug \
+ asn1util auth authkrb5 cmdline_contexts cmdline-credentials cli_cldap \
+ cli-ldap-common cli-nbt cli_smb_common cli_spoolss clidns common-auth \
+ ctdb-event-client dbwrap events genrand gensec gse http interfaces \
+ krb5samba ldbsamba libcli_lsa3 libcli_netlogon3 libsmb messages_dgm \
+ messages_util mscat msghdr msrpc3 netif npa_tstream popt_samba3 \
+ popt_samba3_cmdline registry replace samba-cluster-support samba-debug \
samba-modules samba-security samba-sockets samba3-util samdb-common secrets3 \
- server_id_db server-role samba_python smbclient-raw smbd_shim smbpasswdparser \
- socket-blocking sys_rw talloc_report_printf talloc_report tdb-wrap tevent-util \
- time-basic torture trusts_util util_reg util_setid util_tdb ctdb-event-client"
+ server_id_db server-role smbclient-raw smbd_shim socket-blocking sys_rw \
+ talloc_report_printf talloc_report tevent-util time-basic trusts_util \
+ util_reg util_setid util_tdb"
configure_args+=" --with-privatelibdir=/usr/lib --builtin-libraries=${_privlibs// /,}"
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
@@ -173,8 +173,9 @@ samba-libs_package() {
_libs="dcerpc dcerpc-binding ndr-krb5pac ndr-nbt ndr-standard ndr
samba-credentials samba-errors samba-hostconfig samba-passdb
samba-util samdb smbclient smbconf smbldap wbclient"
- _privlibs="cli-ldap cliauth common-auth dcerpc-samba gpo
- ndr-samba ndr smb-transport util-cmdline winbind-client"
+ _privlibs="cli-ldap cliauth cluster common-auth dcerpc-samba
+ flag-mapping gpo iov-buf ndr-samba ndr printer-driver
+ smb-transport tdb-wrap util-cmdline winbind-client"
for _lib in ${_libs}; do
vmove "usr/lib/lib${_lib}.so.*"
diff --git a/srcpkgs/samba/update b/srcpkgs/samba/update
index 9b5cdbfb10f..7a794aa66ec 100644
--- a/srcpkgs/samba/update
+++ b/srcpkgs/samba/update
@@ -1 +1 @@
-ignore="4.* *rc[0-9] *a *b"
+ignore="*rc[0-9] *a *b"
From 24188b0773bc2d016b473381bcf982f565ba196f Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Sat, 2 Jan 2021 09:15:55 -0500
Subject: [PATCH 2/2] cifs-utils: update to 6.12.
---
.../patches/cifs.upall-setcap.patch | 51 -------------------
.../patches/mount.cifs-setcap.patch | 51 -------------------
srcpkgs/cifs-utils/template | 6 +--
3 files changed, 3 insertions(+), 105 deletions(-)
delete mode 100644 srcpkgs/cifs-utils/patches/cifs.upall-setcap.patch
delete mode 100644 srcpkgs/cifs-utils/patches/mount.cifs-setcap.patch
diff --git a/srcpkgs/cifs-utils/patches/cifs.upall-setcap.patch b/srcpkgs/cifs-utils/patches/cifs.upall-setcap.patch
deleted file mode 100644
index 376c8e1d512..00000000000
--- a/srcpkgs/cifs-utils/patches/cifs.upall-setcap.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From linux-cifs Sat Nov 21 11:11:45 2020
-From: Jonas Witschel <diabonas () archlinux ! org>
-Date: Sat, 21 Nov 2020 11:11:45 +0000
-To: linux-cifs
-Subject: [PATCH 2/2] cifs.upall: update the cap bounding set only when CAP_SETPCAP is given
-Message-Id: <20201121111145.24975-3-diabonas () archlinux ! org>
-X-MARC-Message: https://marc.info/?l=linux-cifs&m=160595758021261
-
-libcap-ng 0.8.1 tightened the error checking on capng_apply, returning an error
-of -4 when trying to update the capability bounding set without having the
-CAP_SETPCAP capability to be able to do so. Previous versions of libcap-ng
-silently skipped updating the bounding set and only updated the normal
-CAPNG_SELECT_CAPS capabilities instead.
-
-Check beforehand whether we have CAP_SETPCAP, in which case we can use
-CAPNG_SELECT_BOTH to update both the normal capabilities and the bounding set.
-Otherwise, we can at least update the normal capabilities, but refrain from
-trying to update the bounding set to avoid getting an error.
-
-Signed-off-by: Jonas Witschel <diabonas@archlinux.org>
----
- cifs.upcall.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/cifs.upcall.c b/cifs.upcall.c
-index 1559434..af1a0b0 100644
---- cifs.upcall.c
-+++ cifs.upcall.c
-@@ -88,6 +88,8 @@ typedef enum _sectype {
- static int
- trim_capabilities(bool need_environ)
- {
-+ capng_select_t set = CAPNG_SELECT_CAPS;
-+
- capng_clear(CAPNG_SELECT_BOTH);
-
- /* SETUID and SETGID to change uid, gid, and grouplist */
-@@ -105,7 +107,10 @@ trim_capabilities(bool need_environ)
- return 1;
- }
-
-- if (capng_apply(CAPNG_SELECT_BOTH)) {
-+ if (capng_have_capability(CAPNG_EFFECTIVE, CAP_SETPCAP)) {
-+ set = CAPNG_SELECT_BOTH;
-+ }
-+ if (capng_apply(set)) {
- syslog(LOG_ERR, "%s: Unable to apply capability set: %m\n", __func__);
- return 1;
- }
---
-2.29.2
diff --git a/srcpkgs/cifs-utils/patches/mount.cifs-setcap.patch b/srcpkgs/cifs-utils/patches/mount.cifs-setcap.patch
deleted file mode 100644
index 74f17240469..00000000000
--- a/srcpkgs/cifs-utils/patches/mount.cifs-setcap.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From linux-cifs Sat Nov 21 11:11:44 2020
-From: Jonas Witschel <diabonas () archlinux ! org>
-Date: Sat, 21 Nov 2020 11:11:44 +0000
-To: linux-cifs
-Subject: [PATCH 1/2] mount.cifs: update the cap bounding set only when CAP_SETPCAP is given
-Message-Id: <20201121111145.24975-2-diabonas () archlinux ! org>
-X-MARC-Message: https://marc.info/?l=linux-cifs&m=160595758021264
-
-libcap-ng 0.8.1 tightened the error checking on capng_apply, returning an error
-of -4 when trying to update the capability bounding set without having the
-CAP_SETPCAP capability to be able to do so. Previous versions of libcap-ng
-silently skipped updating the bounding set and only updated the normal
-CAPNG_SELECT_CAPS capabilities instead.
-
-Check beforehand whether we have CAP_SETPCAP, in which case we can use
-CAPNG_SELECT_BOTH to update both the normal capabilities and the bounding set.
-Otherwise, we can at least update the normal capabilities, but refrain from
-trying to update the bounding set to avoid getting an error.
-
-Signed-off-by: Jonas Witschel <diabonas@archlinux.org>
----
- mount.cifs.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/mount.cifs.c b/mount.cifs.c
-index 4feb397..88b8b69 100644
---- mount.cifs.c
-+++ mount.cifs.c
-@@ -338,6 +338,8 @@ static int set_password(struct parsed_mount_info *parsed_info, const char *src)
- static int
- drop_capabilities(int parent)
- {
-+ capng_select_t set = CAPNG_SELECT_CAPS;
-+
- capng_setpid(getpid());
- capng_clear(CAPNG_SELECT_BOTH);
- if (parent) {
-@@ -355,7 +357,10 @@ drop_capabilities(int parent)
- return EX_SYSERR;
- }
- }
-- if (capng_apply(CAPNG_SELECT_BOTH)) {
-+ if (capng_have_capability(CAPNG_EFFECTIVE, CAP_SETPCAP)) {
-+ set = CAPNG_SELECT_BOTH;
-+ }
-+ if (capng_apply(set)) {
- fprintf(stderr, "Unable to apply new capability set.\n");
- return EX_SYSERR;
- }
---
-2.29.2
diff --git a/srcpkgs/cifs-utils/template b/srcpkgs/cifs-utils/template
index 85af0443318..3acf8585ff4 100644
--- a/srcpkgs/cifs-utils/template
+++ b/srcpkgs/cifs-utils/template
@@ -1,7 +1,7 @@
# Template file for 'cifs-utils'
pkgname=cifs-utils
-version=6.11
-revision=3
+version=6.12
+revision=1
build_style=gnu-configure
configure_args="--disable-systemd"
make_install_args="ROOTSBINDIR=/usr/bin"
@@ -12,7 +12,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://wiki.samba.org/index.php/LinuxCIFS_utils"
distfiles="https://ftp.samba.org/pub/linux-cifs/${pkgname}/${pkgname}-${version}.tar.bz2"
-checksum=b859239a3f204f8220d3e54ed43bf8109e1ef202042dd87ba87492f8878728d9
+checksum=922ddcc3059922e80789312c386b9c569991b4350d3ae3099de3e4b82f3885ef
python_version=3
pre_configure() {
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
@ 2021-01-02 20:23 ` andry-dev
2021-01-03 5:43 ` wangp
` (28 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: andry-dev @ 2021-01-02 20:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
New comment by andry-dev on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753525335
Comment:
I created a basic configuration based on the default one and it seems to work. This is the config from `testparm`:
```
[global]
dns proxy = No
log file = /var/log/samba/%m.log
map to guest = Bad User
max log size = 50
server role = standalone server
server string = Samba Server
idmap config * : backend = tdb
[homes]
browseable = No
comment = Home Directories
read only = No
[public]
guest ok = Yes
guest only = Yes
path = /var/pubsmb
read only = No
```
I can properly use my home and the public share.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
2021-01-02 20:23 ` andry-dev
@ 2021-01-03 5:43 ` wangp
2021-01-03 12:07 ` Anachron
` (27 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: wangp @ 2021-01-03 5:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
New comment by wangp on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753571796
Comment:
Seems fine on Raspberry Pi 3B.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
2021-01-02 20:23 ` andry-dev
2021-01-03 5:43 ` wangp
@ 2021-01-03 12:07 ` Anachron
2021-01-03 15:01 ` Anachron
` (26 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-03 12:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753607280
Comment:
I'm currently cross-compiling between `x86_64` and `aarch64`. Will update this comment once finished testing.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (2 preceding siblings ...)
2021-01-03 12:07 ` Anachron
@ 2021-01-03 15:01 ` Anachron
2021-01-03 17:47 ` ahesford
` (25 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-03 15:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753630397
Comment:
I'm still having issues no matter which config I use.
One thing I recognized is it spawns 2 processes
```
1 S root 16568 1 0 80 0 - 13473 ep_pol 15:57 pts/0 00:00:00 smbd -F -S --no-process-group
1 S root 16569 1 0 80 0 - 13473 ep_pol 15:57 pts/0 00:00:00 smbd -F -S --no-process-group
```
I'm investigating.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (3 preceding siblings ...)
2021-01-03 15:01 ` Anachron
@ 2021-01-03 17:47 ` ahesford
2021-01-03 18:02 ` Anachron
` (24 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-03 17:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753652243
Comment:
I have five instances of `smbd -F -S`. What is the reason for adding `--no-process-group`?
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (4 preceding siblings ...)
2021-01-03 17:47 ` ahesford
@ 2021-01-03 18:02 ` Anachron
2021-01-03 18:58 ` Anachron
` (23 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-03 18:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753654183
Comment:
Well the problem is that `sv` thinks the service is down because it detaches from the parent process. (See the 1 as parent PID)
So it turns out running the service file `once` actually spawns `smbd` and I can try to connect to the server.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (5 preceding siblings ...)
2021-01-03 18:02 ` Anachron
@ 2021-01-03 18:58 ` Anachron
2021-01-03 19:03 ` Anachron
` (22 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-03 18:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753654183
Comment:
Well the problem is that `sv` thinks the service is down because it detaches from the parent process. (See the 1 as parent PID)
So it turns out running the service file `once` actually spawns `smbd` and I can try to connect to the server. However! I cannot connect to the share for whatever reason. I can see the samba share in my network but adding it only throws a general error. smbclient gives me no access to the samba share whatsoever, not even in localhost. Something is seriously wrong here.
(Giving up for today after 2 hours of debugging)
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (6 preceding siblings ...)
2021-01-03 18:58 ` Anachron
@ 2021-01-03 19:03 ` Anachron
2021-01-03 19:32 ` ahesford
` (21 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-03 19:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 260 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753662165
Comment:
While we're at it, is there a reason we don't ship `samba-tool`? We have the manpage already, but not the tool itself.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (7 preceding siblings ...)
2021-01-03 19:03 ` Anachron
@ 2021-01-03 19:32 ` ahesford
2021-01-03 19:42 ` ahesford
` (20 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-03 19:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 331 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753665650
Comment:
Yes. `samba-tool` seems to be installed only when `--with-ad-dc` is specified, but this option is experimental when using `--with-system-mitkrb5`, so `--without-ad-dc` is preferred for now.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (8 preceding siblings ...)
2021-01-03 19:32 ` ahesford
@ 2021-01-03 19:42 ` ahesford
2021-01-04 10:17 ` Anachron
` (19 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-03 19:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 983 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753666616
Comment:
If you really want to dig into it, you could completely disable the building in of all private libraries, figure out which private libs should be a part of `samba-libs` and which should remain in `samba`, and see if that makes a difference for your problem. (Private libraries that are required by stuff already in `samba-libs` should be in that package to avoid cyclic dependencies between `samba` and `samba-libs`, but other private libs should stay in `samba`.)
However, since the first 4.13.2 package worked for you, I wouldn't think this would be a built-in library issue.
One thing to try is totally purging `/var/{lib,cache}/samba`, `/run/samba` and maybe even `/etc/samba/private` before attempting to launch the new version, but then you'll have to recreate your password database.
Does `testparm` give you anything useful?
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (9 preceding siblings ...)
2021-01-03 19:42 ` ahesford
@ 2021-01-04 10:17 ` Anachron
2021-01-04 10:44 ` Anachron
` (18 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 10:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2021 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753888015
Comment:
I nuked everything and ran `nmbd` and `smbd`, yet it errors out.
In my syslog:
```
2021-01-04T10:06:45.87226 daemon.notice: Jan 4 11:06:45 smbd: smbd version 4.13.3 started.
2021-01-04T10:06:45.87259 daemon.notice: Jan 4 11:06:45 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T10:06:45.94161 daemon.notice: Jan 4 11:06:45 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T10:06:45.94197 daemon.notice: Jan 4 11:06:45 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Running it in my shell (`smbd -F -S -d 6`) however returns a different error:
```
added interface eth0 ip=192.168.178.20 bcast=192.168.178.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="VOID-RPI3"
exit_daemon: daemon failed to start: Failed to create session, error code 1
```
If I add `--no-process-group` when run locally I receive:
```
Finding user nobody
Trying _Get_Pwnam(), username as lowercase is nobody
Get_Pwnam_internals did find user [nobody]!
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
svcctl_init_winreg: Could not open SYSTEM\CurrentControlSet\Services - NT_STATUS_INVALID_HANDLE
dcesrv_init_ep_server: Failed to init endpoint server 'svcctl': NT_STATUS_UNSUCCESSFUL
dcesrv_init: Failed to init DCE/RPC endpoint servers: NT_STATUS_UNSUCCESSFUL
main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Strace: https://gist.github.com/Anachron/191a7377ed8ec35eb597a649e5014710
Following line looks suspicious:
```
newfstatat(AT_FDCWD, "/run/samba/winbindd", 0x7fe3cb2698, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
```
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (10 preceding siblings ...)
2021-01-04 10:17 ` Anachron
@ 2021-01-04 10:44 ` Anachron
2021-01-04 11:42 ` Anachron
` (17 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 10:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1855 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753888015
Comment:
I nuked everything and ran `nmbd` and `smbd`, yet it errors out.
In my syslog:
```
2021-01-04T10:06:45.87226 daemon.notice: Jan 4 11:06:45 smbd: smbd version 4.13.3 started.
2021-01-04T10:06:45.87259 daemon.notice: Jan 4 11:06:45 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T10:06:45.94161 daemon.notice: Jan 4 11:06:45 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T10:06:45.94197 daemon.notice: Jan 4 11:06:45 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Running it in my shell (`smbd -F -S -d 6`) however returns a different error:
```
added interface eth0 ip=192.168.178.20 bcast=192.168.178.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="VOID-RPI3"
exit_daemon: daemon failed to start: Failed to create session, error code 1
```
If I add `--no-process-group` when run locally I receive:
```
Finding user nobody
Trying _Get_Pwnam(), username as lowercase is nobody
Get_Pwnam_internals did find user [nobody]!
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
svcctl_init_winreg: Could not open SYSTEM\CurrentControlSet\Services - NT_STATUS_INVALID_HANDLE
dcesrv_init_ep_server: Failed to init endpoint server 'svcctl': NT_STATUS_UNSUCCESSFUL
dcesrv_init: Failed to init DCE/RPC endpoint servers: NT_STATUS_UNSUCCESSFUL
main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Strace: https://gist.github.com/Anachron/191a7377ed8ec35eb597a649e5014710
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (11 preceding siblings ...)
2021-01-04 10:44 ` Anachron
@ 2021-01-04 11:42 ` Anachron
2021-01-04 14:43 ` ahesford
` (16 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 11:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2967 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-753888015
Comment:
I nuked everything and ran `nmbd` and `smbd`, yet it errors out.
In my syslog:
```
2021-01-04T10:06:45.87226 daemon.notice: Jan 4 11:06:45 smbd: smbd version 4.13.3 started.
2021-01-04T10:06:45.87259 daemon.notice: Jan 4 11:06:45 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T10:06:45.94161 daemon.notice: Jan 4 11:06:45 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T10:06:45.94197 daemon.notice: Jan 4 11:06:45 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Running it in my shell (`smbd -F -S -d 6`) however returns a different error:
```
added interface eth0 ip=192.168.178.20 bcast=192.168.178.255 netmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="VOID-RPI3"
exit_daemon: daemon failed to start: Failed to create session, error code 1
```
If I add `--no-process-group` when run locally I receive:
```
Finding user nobody
Trying _Get_Pwnam(), username as lowercase is nobody
Get_Pwnam_internals did find user [nobody]!
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
Security token: (NULL)
svcctl_init_winreg: Could not open SYSTEM\CurrentControlSet\Services - NT_STATUS_INVALID_HANDLE
dcesrv_init_ep_server: Failed to init endpoint server 'svcctl': NT_STATUS_UNSUCCESSFUL
dcesrv_init: Failed to init DCE/RPC endpoint servers: NT_STATUS_UNSUCCESSFUL
main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Strace: https://gist.github.com/Anachron/191a7377ed8ec35eb597a649e5014710
My `testparm` output:
```
# Global parameters
[global]
map to guest = Bad User
passdb backend = smbpasswd
security = USER
server role = standalone server
server string = RPI 3 B+ Share
idmap config * : backend = tdb
[media]
path = /data/media
valid users = media
```
I also realized my PID inside `/var/run/samba/smbd.pid` is wrong. That process seems to have excited (probably the parent smbd process?)
Example:
```
-bash-5.0# ps -edalf | grep smbd
1 S root 8482 1 0 80 0 - 12649 ep_pol 12:42 ? 00:00:00 smbd -F -S
1 S root 8483 1 0 80 0 - 12647 ep_pol 12:42 ? 00:00:00 smbd -F -S
0 S root 8488 6387 0 80 0 - 1551 pipe_w 12:42 pts/0 00:00:00 grep smbd
0 S root 15593 263 0 80 0 - 446 do_sel Jan03 ? 00:00:00 runsv smbd
0 S root 15595 15593 0 80 0 - 482 pipe_w Jan03 ? 00:00:00 logger -p daemon notice -t smbd
-bash-5.0# cat /var/run/samba/smbd.pid
8479
-bash-5.0# kill -0 8479
-bash: kill: (8479) - No such process
```
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (12 preceding siblings ...)
2021-01-04 11:42 ` Anachron
@ 2021-01-04 14:43 ` ahesford
2021-01-04 18:28 ` Anachron
` (15 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-04 14:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754014763
Comment:
I don't think the `winbindd` links are the issue, because I see the same thing when I strace my copy and everything works fine here.
Questions:
1. Are you using the standard `smbd` and `nmbd` services or did you write your own? My `/run/samba/smbd.pid` contains the correct PID and `smbd` is parented by `runsv` as expected.
2. Is `/var/run` a symlink to `/run` on your system? Samba is configured to use `/run/samba`, but `/var/run` should point to that anyway.
I have a few key differences in the `[global]` section of my `smb.conf` file:
1. I do not specify `map to guest`, instead relying on the default `map to guest = Never`.
2. I do not specify `passdb backend`, instead relyong on the default `passdb backend = tdbsam`. The manual page notes that "[s]ome Samba features will not work if [the smbpasswd] backend is used".
3. I have `server min protocol = SMB2`, but I doubt this is responsible for your issue.
The value of `--no-process-group` is still not clear to me.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (13 preceding siblings ...)
2021-01-04 14:43 ` ahesford
@ 2021-01-04 18:28 ` Anachron
2021-01-04 18:45 ` Anachron
` (14 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 18:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2338 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754138548
Comment:
My cleaning script:
```
#!/bin/sh
sv stop nmbd smbd
! pgrep -f "nmbd -F -S" || kill -9 $(pgrep -f "mbd -F -S")
rm -rf /var/run/samba /var/cache/samba /var/lib/samba
! test -d /etc/samba || mv /etc/samba /etc/samba-$(date +%Y%m%d-%H%M%S).bak
rm /var/service/smbd /var/service/nmbd
xbps-remove -R smbclient samba samba-libs
```
My install script:
```
#!/bin/sh
xbps-install ${@} --repository="${HOME}/pr-27626" samba smbclient
```
Using the default `smb.conf` (minus printers)
```
[global]
workgroup = MYGROUP
server string = Samba Server
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
```
nmbd is fine:
```
2021-01-04T18:16:35.97146 daemon.notice: Jan 4 19:16:35 nmbd: Samba name server VOID-RPI3 is now a local master browser for workgroup MYGROUP on subnet 192.168.178.20
```
But smbd is still erroring:
```
2021-01-04T18:16:36.30801 daemon.notice: Jan 4 19:16:36 smbd: smbd version 4.13.3 started.
2021-01-04T18:16:36.30821 daemon.notice: Jan 4 19:16:36 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T18:16:36.38221 daemon.notice: Jan 4 19:16:36 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T18:16:36.38247 daemon.notice: Jan 4 19:16:36 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
2021-01-04T18:16:37.70446 daemon.notice: Jan 4 19:16:37 smbd: smbd version 4.13.3 started.
2021-01-04T18:16:37.70471 daemon.notice: Jan 4 19:16:37 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T18:16:37.77915 daemon.notice: Jan 4 19:16:37 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T18:16:37.77944 daemon.notice: Jan 4 19:16:37 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Versions:
```
-bash-5.0# xbps-query -p pkgver samba
samba-4.13.3_1
-bash-5.0# xbps-query -p pkgver smbclient
smbclient-4.13.3_1
-bash-5.0# xbps-query -p pkgver samba-libs
samba-libs-4.13.3_1
-bash-5.0# uname -r
5.4.68_1
```
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (14 preceding siblings ...)
2021-01-04 18:28 ` Anachron
@ 2021-01-04 18:45 ` Anachron
2021-01-04 19:06 ` Anachron
` (13 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 18:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2443 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754138548
Comment:
My cleaning script:
```
#!/bin/sh
sv stop nmbd smbd
! pgrep -f "nmbd -F -S" || kill -9 $(pgrep -f "mbd -F -S")
rm -rf /var/run/samba /var/cache/samba /var/lib/samba
! test -d /etc/samba || mv /etc/samba /etc/samba-$(date +%Y%m%d-%H%M%S).bak
rm /var/service/smbd /var/service/nmbd
xbps-remove -R smbclient samba samba-libs
```
My install script:
```
#!/bin/sh
xbps-install ${@} --repository="${HOME}/pr-27626" samba smbclient
```
Using the default `smb.conf` (minus printers)
```
[global]
workgroup = MYGROUP
server string = Samba Server
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
```
nmbd is fine:
```
2021-01-04T18:16:35.97146 daemon.notice: Jan 4 19:16:35 nmbd: Samba name server VOID-RPI3 is now a local master browser for workgroup MYGROUP on subnet 192.168.178.20
```
But smbd is still erroring:
```
2021-01-04T18:16:36.30801 daemon.notice: Jan 4 19:16:36 smbd: smbd version 4.13.3 started.
2021-01-04T18:16:36.30821 daemon.notice: Jan 4 19:16:36 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T18:16:36.38221 daemon.notice: Jan 4 19:16:36 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T18:16:36.38247 daemon.notice: Jan 4 19:16:36 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
2021-01-04T18:16:37.70446 daemon.notice: Jan 4 19:16:37 smbd: smbd version 4.13.3 started.
2021-01-04T18:16:37.70471 daemon.notice: Jan 4 19:16:37 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T18:16:37.77915 daemon.notice: Jan 4 19:16:37 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T18:16:37.77944 daemon.notice: Jan 4 19:16:37 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Versions:
```
-bash-5.0# xbps-query -p pkgver samba
samba-4.13.3_1
-bash-5.0# xbps-query -p pkgver smbclient
smbclient-4.13.3_1
-bash-5.0# xbps-query -p pkgver samba-libs
samba-libs-4.13.3_1
-bash-5.0# uname -r
5.4.68_1
```
Edit:
My service files are default, removing `--no-process-group` has no positive effect whatsoever.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (15 preceding siblings ...)
2021-01-04 18:45 ` Anachron
@ 2021-01-04 19:06 ` Anachron
2021-01-04 22:03 ` ahesford
` (12 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 19:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2775 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754138548
Comment:
My cleaning script:
```
#!/bin/sh
sv stop nmbd smbd
! pgrep -f "nmbd -F -S" || kill -9 $(pgrep -f "mbd -F -S")
rm -rf /var/run/samba /var/cache/samba /var/lib/samba
! test -d /etc/samba || mv /etc/samba /etc/samba-$(date +%Y%m%d-%H%M%S).bak
rm /var/service/smbd /var/service/nmbd
xbps-remove -R smbclient samba samba-libs
```
My install script:
```
#!/bin/sh
xbps-install ${@} --repository="${HOME}/pr-27626" samba smbclient
```
Using the default `smb.conf` (minus printers)
```
[global]
workgroup = MYGROUP
server string = Samba Server
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
```
nmbd is fine:
```
2021-01-04T18:16:35.97146 daemon.notice: Jan 4 19:16:35 nmbd: Samba name server VOID-RPI3 is now a local master browser for workgroup MYGROUP on subnet 192.168.178.20
```
But smbd is still erroring:
```
2021-01-04T18:16:36.30801 daemon.notice: Jan 4 19:16:36 smbd: smbd version 4.13.3 started.
2021-01-04T18:16:36.30821 daemon.notice: Jan 4 19:16:36 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T18:16:36.38221 daemon.notice: Jan 4 19:16:36 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T18:16:36.38247 daemon.notice: Jan 4 19:16:36 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
2021-01-04T18:16:37.70446 daemon.notice: Jan 4 19:16:37 smbd: smbd version 4.13.3 started.
2021-01-04T18:16:37.70471 daemon.notice: Jan 4 19:16:37 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020
2021-01-04T18:16:37.77915 daemon.notice: Jan 4 19:16:37 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL
2021-01-04T18:16:37.77944 daemon.notice: Jan 4 19:16:37 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13
```
Versions:
```
-bash-5.0# xbps-query -p pkgver samba
samba-4.13.3_1
-bash-5.0# xbps-query -p pkgver smbclient
smbclient-4.13.3_1
-bash-5.0# xbps-query -p pkgver samba-libs
samba-libs-4.13.3_1
-bash-5.0# uname -r
5.4.68_1
```
Edit:
1. Are you using the standard smbd and nmbd services or did you write your own? My /run/samba/smbd.pid contains the correct PID and smbd is parented by runsv as expected.
My service files are default, removing `--no-process-group` has no positive effect whatsoever.
2. Is /var/run a symlink to /run on your system? Samba is configured to use /run/samba, but /var/run should point to that anyway.
Its a symlink to `../run`.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (16 preceding siblings ...)
2021-01-04 19:06 ` Anachron
@ 2021-01-04 22:03 ` ahesford
2021-01-04 22:06 ` ahesford
` (11 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-04 22:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754250750
Comment:
I populated a USB stick with the Void 20201224 PLATFORMFS image for rpi3 and used it to boot an RPi 3B+. Then, I installed `samba-4.13.3_1` from my repo and was able to launch `smbd` using the default service file. The config looks like yours, except my workgroup is `WORKGROUP`, I dropped the `server role` line (which seems to be the default when no `security` option is provided), `max log size = 1024`, and I left off the `dns proxy` line (which should default to `yes`).
Note that my first attempt to run `smbd` manually was met with the error
> daemon failed to start: Failed to create session, error code 1
which appears to have been caused by a missing `/run/samba`; note that the service file creates this directory if it does not exist.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (17 preceding siblings ...)
2021-01-04 22:03 ` ahesford
@ 2021-01-04 22:06 ` ahesford
2021-01-04 22:34 ` Anachron
` (10 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-04 22:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754250750
Comment:
I populated a USB stick with the Void 20201224 PLATFORMFS image for rpi3 and used it to boot an RPi 3B+. Then, I installed `samba-4.13.3_1` from my repo and was able to launch `smbd` using the default service file. The config looks like yours, except my workgroup is `WORKGROUP`, I dropped the `server role` line (which seems to be the default when no `security` option is provided), `max log size = 1024`, and I left off the `dns proxy` line (which should default to `yes`).
Note that my first attempt to run `smbd` manually was met with the error
> daemon failed to start: Failed to create session, error code 1
which appears to have been caused by a missing `/run/samba`; note that the service file creates this directory if it does not exist.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (18 preceding siblings ...)
2021-01-04 22:06 ` ahesford
@ 2021-01-04 22:34 ` Anachron
2021-01-04 22:35 ` Anachron
` (9 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 22:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754264310
Comment:
Found some weird stuff (check the dates) in /var/lock/samba
```
rpi@void-rpi3 ~ » ls -lisa /var/lock/samba/msg.lock/
insgesamt 20
11351 0 drwxr-xr-x 2 root root 140 4. Jan 23:31 .
11350 0 drwxr-xr-x 3 root root 280 4. Jan 19:16 ..
11103 4 -rw-r--r-- 1 root root 20 1. Jan 1970 291
7790 4 -rw-r--r-- 1 root root 20 1. Jan 1970 397
18679 4 -rw-r--r-- 1 root root 20 4. Jan 13:52 4869
16089 4 -rw-r--r-- 1 root root 21 4. Jan 13:52 4870
20828 4 -rw-r--r-- 1 root root 21 4. Jan 19:31 5748
```
Will keep investigating tomorrow.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (19 preceding siblings ...)
2021-01-04 22:34 ` Anachron
@ 2021-01-04 22:35 ` Anachron
2021-01-04 22:36 ` Anachron
` (8 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 22:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754264310
Comment:
Found some weird stuff (check the dates) in /var/lock/samba
```
rpi@void-rpi3 ~ » ls -lisa /var/lock/samba/ \0\0\0\0\0\0\0\0\0\0
insgesamt 1648
11350 0 drwxr-xr-x 3 root root 280 4. Jan 19:16 .
9671 0 drwxr-xr-x 3 root root 60 1. Jan 1970 ..
16084 512 -rw-r--r-- 1 root root 523528 4. Jan 19:32 brlock
.tdb
17044 524 -rw-r--r-- 1 root root 536576 4. Jan 19:37 gencac
he.tdb
17038 12 -rw-r--r-- 1 root root 8888 4. Jan 19:32 leases
.tdb
16085 512 -rw-r--r-- 1 root root 523528 4. Jan 19:32 lockin
g.tdb
11351 0 drwxr-xr-x 2 root root 140 4. Jan 23:31 msg.lo
ck
19536 4 -rw------- 1 root root 696 4. Jan 19:16 mutex.
tdb
11075 12 -rw-rw---- 1 root root 12288 1. Jan 1970 names.
tdb
17035 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_client_global.tdb
16091 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_open_global.tdb
17036 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_session_global.tdb
17037 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_tcon_global.tdb
17034 24 -rw------- 1 root root 24576 4. Jan 19:32 smbXsr
v_version_global.tdb
```
```
rpi@void-rpi3 ~ » ls -lisa /var/lock/samba/msg.lock/
insgesamt 20
11351 0 drwxr-xr-x 2 root root 140 4. Jan 23:31 .
11350 0 drwxr-xr-x 3 root root 280 4. Jan 19:16 ..
11103 4 -rw-r--r-- 1 root root 20 1. Jan 1970 291
7790 4 -rw-r--r-- 1 root root 20 1. Jan 1970 397
18679 4 -rw-r--r-- 1 root root 20 4. Jan 13:52 4869
16089 4 -rw-r--r-- 1 root root 21 4. Jan 13:52 4870
20828 4 -rw-r--r-- 1 root root 21 4. Jan 19:31 5748
```
Will keep investigating tomorrow.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (20 preceding siblings ...)
2021-01-04 22:35 ` Anachron
@ 2021-01-04 22:36 ` Anachron
2021-01-04 22:39 ` Anachron
` (7 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 22:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1822 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754264310
Comment:
Found some weird stuff (check the dates) in /var/lock/samba
```
rpi@void-rpi3 ~ » ls -lisa /var/lock/samba/ \0\0\0\0\0\0\0\0\0\0
insgesamt 1648
11350 0 drwxr-xr-x 3 root root 280 4. Jan 19:16 .
9671 0 drwxr-xr-x 3 root root 60 1. Jan 1970 ..
16084 512 -rw-r--r-- 1 root root 523528 4. Jan 19:32 brlock
.tdb
17044 524 -rw-r--r-- 1 root root 536576 4. Jan 19:37 gencac
he.tdb
17038 12 -rw-r--r-- 1 root root 8888 4. Jan 19:32 leases
.tdb
16085 512 -rw-r--r-- 1 root root 523528 4. Jan 19:32 lockin
g.tdb
11351 0 drwxr-xr-x 2 root root 140 4. Jan 23:31 msg.lo
ck
19536 4 -rw------- 1 root root 696 4. Jan 19:16 mutex.
tdb
11075 12 -rw-rw---- 1 root root 12288 1. Jan 1970 names.
tdb
17035 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_client_global.tdb
16091 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_open_global.tdb
17036 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_session_global.tdb
17037 12 -rw------- 1 root root 8888 4. Jan 19:32 smbXsr
v_tcon_global.tdb
17034 24 -rw------- 1 root root 24576 4. Jan 19:32 smbXsr
v_version_global.tdb
```
```
rpi@void-rpi3 ~ » ls -lisa /var/lock/samba/msg.lock/
insgesamt 20
11351 0 drwxr-xr-x 2 root root 140 4. Jan 23:31 .
11350 0 drwxr-xr-x 3 root root 280 4. Jan 19:16 ..
11103 4 -rw-r--r-- 1 root root 20 1. Jan 1970 291
7790 4 -rw-r--r-- 1 root root 20 1. Jan 1970 397
18679 4 -rw-r--r-- 1 root root 20 4. Jan 13:52 4869
16089 4 -rw-r--r-- 1 root root 21 4. Jan 13:52 4870
20828 4 -rw-r--r-- 1 root root 21 4. Jan 19:31 5748
```
Seems like names.tdb and msg.sock are created with the wrong timestamps.
Will keep investigating tomorrow.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (21 preceding siblings ...)
2021-01-04 22:36 ` Anachron
@ 2021-01-04 22:39 ` Anachron
2021-01-04 22:40 ` Anachron
` (6 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 22:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754266196
Comment:
@ahesford pretty sure the issue is local on my end. Do you want to keep for merging this PR?
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (22 preceding siblings ...)
2021-01-04 22:39 ` Anachron
@ 2021-01-04 22:40 ` Anachron
2021-01-04 22:41 ` ericonr
` (5 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-04 22:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754266196
Comment:
@ahesford pretty sure the issue is local on my end. Do you want to keep waiting for merging this PR?
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (23 preceding siblings ...)
2021-01-04 22:40 ` Anachron
@ 2021-01-04 22:41 ` ericonr
2021-01-04 22:42 ` ericonr
` (4 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-01-04 22:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 300 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754266836
Comment:
@Anachron do oyu have an RTC or something of the sort? You can try to enable the fake-hwclock service to see if that's what's causing the issue (it likely is).
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (24 preceding siblings ...)
2021-01-04 22:41 ` ericonr
@ 2021-01-04 22:42 ` ericonr
2021-01-05 3:08 ` ahesford
` (3 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ericonr @ 2021-01-04 22:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754266836
Comment:
@Anachron do oyu have an RTC or something of the sort? You can try to enable the fake-hwclock service (I'd recommend restoring the time from `/etc/rc.local` instead of letting the service do it, though) to see if that's what's causing the issue (it likely is).
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (25 preceding siblings ...)
2021-01-04 22:42 ` ericonr
@ 2021-01-05 3:08 ` ahesford
2021-01-05 3:42 ` [PR PATCH] [Closed]: " ahesford
` (2 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-05 3:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754360220
Comment:
I'm making a few adjustments and will merge shortly.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PR PATCH] [Closed]: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (26 preceding siblings ...)
2021-01-05 3:08 ` ahesford
@ 2021-01-05 3:42 ` ahesford
2021-01-05 3:44 ` ahesford
2021-01-05 7:20 ` Anachron
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-05 3:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
There's a closed pull request on the void-packages repository
samba update to 4.13.3, cifs-utils update to 6.12
https://github.com/void-linux/void-packages/pull/27626
Description:
It seems my attempt to build in more private libraries in the 4.13.2_2 revbump breaks `smbd`, so I've reverted those library changes.
Closes #27565.
@wangp @Anachron @andry-dev @abenson please give this a test if you don't mind. Everything works for me on `x86_64`.
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (27 preceding siblings ...)
2021-01-05 3:42 ` [PR PATCH] [Closed]: " ahesford
@ 2021-01-05 3:44 ` ahesford
2021-01-05 7:20 ` Anachron
29 siblings, 0 replies; 31+ messages in thread
From: ahesford @ 2021-01-05 3:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 237 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754372095
Comment:
Merged in 92ac0f5fc618b37fb5602190f4628c396ad405da and 6f0dda0a07cd1a6740b8b9ca15140866c6c13195
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: samba update to 4.13.3, cifs-utils update to 6.12
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
` (28 preceding siblings ...)
2021-01-05 3:44 ` ahesford
@ 2021-01-05 7:20 ` Anachron
29 siblings, 0 replies; 31+ messages in thread
From: Anachron @ 2021-01-05 7:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
New comment by Anachron on void-packages repository
https://github.com/void-linux/void-packages/pull/27626#issuecomment-754453552
Comment:
Heads up! The latest changes work again. Samba now runs. Thanks, @ahesford!
^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2021-01-05 7:20 UTC | newest]
Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-02 19:01 [PR PATCH] samba update to 4.13.3, cifs-utils update to 6.12 ahesford
2021-01-02 20:23 ` andry-dev
2021-01-03 5:43 ` wangp
2021-01-03 12:07 ` Anachron
2021-01-03 15:01 ` Anachron
2021-01-03 17:47 ` ahesford
2021-01-03 18:02 ` Anachron
2021-01-03 18:58 ` Anachron
2021-01-03 19:03 ` Anachron
2021-01-03 19:32 ` ahesford
2021-01-03 19:42 ` ahesford
2021-01-04 10:17 ` Anachron
2021-01-04 10:44 ` Anachron
2021-01-04 11:42 ` Anachron
2021-01-04 14:43 ` ahesford
2021-01-04 18:28 ` Anachron
2021-01-04 18:45 ` Anachron
2021-01-04 19:06 ` Anachron
2021-01-04 22:03 ` ahesford
2021-01-04 22:06 ` ahesford
2021-01-04 22:34 ` Anachron
2021-01-04 22:35 ` Anachron
2021-01-04 22:36 ` Anachron
2021-01-04 22:39 ` Anachron
2021-01-04 22:40 ` Anachron
2021-01-04 22:41 ` ericonr
2021-01-04 22:42 ` ericonr
2021-01-05 3:08 ` ahesford
2021-01-05 3:42 ` [PR PATCH] [Closed]: " ahesford
2021-01-05 3:44 ` ahesford
2021-01-05 7:20 ` Anachron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).