[Pkg-netatalk-devel] Bug#958299: netatalk: incoherent handling of groups

Peter Keel systems at architonic.net
Mon Apr 20 11:19:04 BST 2020


Package: netatalk
Version: 3.1.12~ds-3
Severity: normal
Tags: upstream


Hi

I already reported this upstream, at 
https://sourceforge.net/p/netatalk/bugs/660/
But I thought I stell want to report it here: 


This user "person" is, apart from being in the default group "users" also in the auxiliary group "cc".

# grep person /etc/group
team:x:1001:person
cc:x:1056:person

# grep :100: /etc/group
users:x:100:

# grep person /etc/passwd
person:x:1135:100:Test Person:/home/person:/bin/bash

With this group cc, she has read-only access to the main share, and red-write to a subdirectory of this share:

[Share]
    path = /share
    valid users = @aa, at cc
    directory perm = 0770
    file perm = 0660
    umask = 5007
    rolist = @cc

[CC]
    path = /share/cc
    valid users = @cc
    directory perm = 0770
    file perm = 0660
    umask = 5000


If she uploads to the share cc where she has write-access, this here can happen:

# ls /share/cc
drwxrwsrwx  9 person    users 4096 Apr 20 08:35 200304
drwxrwsr-x  3 person    cc    4096 Apr 20 10:37 200415


Yes, these are two directory she uploaded today.

Which group and umask will be used is completely unpredictable.



Please note, that below list of automatically detected configfiles is 
completely incorrect for netatalk 3; the only configs expected there are
afp.conf, dbus-session.conf and extmap.conf. The others are netatalk
2.


-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages netatalk depends on:
ii  libacl1                  2.2.53-4
ii  libattr1                 1:2.4.48-4
ii  libavahi-client3         0.7-4+b1
ii  libavahi-common3         0.7-4+b1
ii  libc6                    2.28-10
ii  libdb5.3                 5.3.28+dfsg1-0.5
ii  libdbus-1-3              1.12.16-1
ii  libdbus-glib-1-2         0.110-4
ii  libgcrypt20              1.8.4-5
ii  libglib2.0-0             2.58.3-2+deb10u2
ii  libldap-2.4-2            2.4.47+dfsg-3+deb10u1
ii  libpam-modules           1.3.1-5
ii  libpam0g                 1.3.1-5
ii  libtalloc2               2.1.14-2
ii  libtdb1                  1.3.16-2+b1
ii  libtracker-sparql-2.0-0  2.1.8-2
ii  libwrap0                 7.6.q-28
ii  lsb-base                 10.2019051400
ii  netbase                  5.6
ii  perl                     5.28.1-6

Versions of packages netatalk recommends:
ii  avahi-daemon  0.7-4+b1
ii  dbus          1.12.16-1
ii  lsof          4.91+dfsg-1
ii  procps        2:3.3.15-2
ii  python3       3.7.3-1
ii  python3-dbus  1.2.8-3
pn  tracker       <none>

Versions of packages netatalk suggests:
pn  quota  <none>

-- Configuration Files:
/etc/netatalk/AppleVolumes.default [Errno 2] No such file or directory: '/etc/netatalk/AppleVolumes.default'
/etc/netatalk/AppleVolumes.system [Errno 2] No such file or directory: '/etc/netatalk/AppleVolumes.system'
/etc/netatalk/afp.conf changed [not included]
/etc/netatalk/afp_ldap.conf [Errno 2] No such file or directory: '/etc/netatalk/afp_ldap.conf'
/etc/netatalk/afpd.conf [Errno 2] No such file or directory: '/etc/netatalk/afpd.conf'
/etc/netatalk/atalkd.conf [Errno 2] No such file or directory: '/etc/netatalk/atalkd.conf'
/etc/netatalk/papd.conf [Errno 2] No such file or directory: '/etc/netatalk/papd.conf'

-- no debconf information



More information about the pkg-netatalk-devel mailing list