[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] Fix samba usershares permissions

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Sat Jul 1 04:39:16 BST 2023



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config


Commits:
66d00155 by Guido Berhoerster at 2023-07-01T03:38:39+00:00
Fix samba usershares permissions

Setting the group ownership of /var/lib/samba/usershares/ to "students" fails
during the installation because this group is defined in LDAP and the slapd is
not running at the time the samba promise bundle is evaluated.  Thus use the
numeric GID instead.  The group is defined in
ldap-bootstrap/{samba.ldif,gosa.ldif}.  Closes: #1039461.

- - - - -


1 changed file:

- cf3/cf.samba


Changes:

=====================================
cf3/cf.samba
=====================================
@@ -9,9 +9,13 @@ files:
 
   debian.server.installation::
 
+    # GID 10004 is the "students" group, the group name cannot be used here
+    # since slapd is not running when this bundle is evaluated during
+    # installation, the GID must be to be kept in sync with
+    # ldap-bootstrap/{samba.ldif,gosa.ldif}
     "$(usershares_file)"
       create => "true",
-      perms => mog("1770","root","students");
+      perms => mog("1770","root","10004");
 
     "/etc/samba/smb.conf"
       link_from => ln_s("/etc/samba/smb-debian-edu.conf"),



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/66d001551938fb64dbe569340b66c4eb650023be

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/66d001551938fb64dbe569340b66c4eb650023be
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20230701/a834438a/attachment.htm>


More information about the debian-edu-commits mailing list