From: CameronNemo <CameronNemo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: apparmor denying samba
Date: Wed, 06 Oct 2021 07:49:17 +0200 [thread overview]
Message-ID: <20211006054917.B4KitUncEL-dUoLR83G_gib2-e48_gd5Hxev33tsQsI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33335@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/issues/33335#issuecomment-935516841
Comment:
@ahesford how would you feel about switching the samba private dir from /etc/samba/private to /var/lib/samba/private? Upside: more consistent with other distros, smbd does not write to /etc. Downside: I am not 100% sure whether the CLI client tools will still work with old versions of smbd. Users may need to restart the smbd service after an upgrade so that both the CLI clients and service are using the same private dir path.
```diff
diff --git a/srcpkgs/samba/template b/srcpkgs/samba/template
index 69ac97f71d..0755c79f6a 100644
--- a/srcpkgs/samba/template
+++ b/srcpkgs/samba/template
@@ -11,7 +11,7 @@ _auth_modules="auth_unix,auth_wbc,auth_server,auth_netlogind,autH_script,auth_sa
configure_args="--enable-fhs --sbindir=/usr/bin
--localstatedir=/var --sysconfdir=/etc --with-piddir=/run/samba
--with-sockets-dir=/run/samba --with-lockdir=/run/lock/samba
- --with-privatedir=/etc/samba/private --with-pammodulesdir=/usr/lib/security
+ --with-pammodulesdir=/usr/lib/security
--with-modulesdir=/usr/lib/samba --disable-rpath --disable-rpath-install
--without-systemd --without-gettext --bundled-libraries=NONE
--with-system-mitkrb5 --without-ad-dc --with-cluster-support
@@ -30,7 +30,7 @@ distfiles="http://download.samba.org/pub/samba/stable/${pkgname}-${version}.tar.
checksum=6f50353f9602aa20245eb18ceb00e7e5ec793df0974aebd5254c38f16d8f1906
lib32disabled=yes
conf_files="/etc/pam.d/samba /etc/samba/smb.conf"
-make_dirs="/etc/samba/private 0750 root root"
+make_dirs="/var/lib/samba/private 0700 root root"
subpackages="smbclient samba-ctdb samba-cups samba-devel samba-libs samba-python3"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
```
next prev parent reply other threads:[~2021-10-06 5:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 7:57 [ISSUE] " mustaqimM
2021-10-06 5:23 ` CameronNemo
2021-10-06 5:49 ` CameronNemo [this message]
2021-10-06 14:11 ` ahesford
2021-10-06 14:11 ` ahesford
2022-01-24 2:41 ` CameronNemo
2022-06-06 2:15 ` github-actions
2022-06-06 11:08 ` paper42
2022-06-06 11:09 ` [ISSUE] [CLOSED] " paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211006054917.B4KitUncEL-dUoLR83G_gib2-e48_gd5Hxev33tsQsI@z \
--to=cameronnemo@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).