[debian-edu-commits] [Git][debian-edu/debian-edu-config][personal/gber/fix-usershares] Fix samba usershares permissions

Guido Berhörster (@gber) gitlab at salsa.debian.org
Fri Jun 30 09:36:24 BST 2023



Guido Berhörster pushed to branch personal/gber/fix-usershares at Debian Edu / debian-edu-config


Commits:
badd755e by Guido Berhoerster at 2023-06-30T10:35:19+02: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/badd755eb6c68a4e515c632d09df68aab5b3602b

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/badd755eb6c68a4e515c632d09df68aab5b3602b
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/20230630/db7bd893/attachment-0001.htm>


More information about the debian-edu-commits mailing list