Bug#1039461: Owner of /var/lib/samba/usershares/ is not set correctly during installation
Package: debian-edu-config
Version: 2.12.32
CFengine fails to set the ownership of /var/lib/samba/usershares/ in
cf3/cf.samba during the installation with the following error:
verbose: P: BEGIN promise 'promise_cf_samba_12' of type "files" (pass 1)
verbose: P: Promiser/affected object: '/var/lib/samba/usershares/.'
verbose: P: Part of bundle: samba
verbose: P: Base context class: debian.server.installation
verbose: P: Stack path:
/default/samba/files/'/var/lib/samba/usershares/.'[1]
verbose: Using literal pathtype for '/var/lib/samba/usershares/.'
info: Could not get GID for group 'students', (getgrnam: No such
file or directory)
info: Promise belongs to bundle 'samba' in file
'/var/lib/cfengine3/inputs/debian-edu/cf.samba' near line 12
verbose: Additional promise info: version 'CFEngine Promises.cf
3.10.2' source path '/var/lib/cfengine3/inputs/debian-edu/cf.samba' at
line 12
verbose: File '/var/lib/samba/usershares/.' exists as promised
verbose: Handling file existence constraints on
'/var/lib/samba/usershares'
info: Could not get GID for group 'students', (getgrnam: No such
file or directory)
info: Promise belongs to bundle 'samba' in file
'/var/lib/cfengine3/inputs/debian-edu/cf.samba' near line 12
verbose: NB: rxdirs is set to false - x for r bits not checked
verbose: Additional promise info: version 'CFEngine Promises.cf
3.10.2' source path '/var/lib/cfengine3/inputs/debian-edu/cf.samba' at
line 12
verbose: Owner of '/var/lib/samba/usershares' as promised (0)
verbose: Additional promise info: version 'CFEngine Promises.cf
3.10.2' source path '/var/lib/cfengine3/inputs/debian-edu/cf.samba' at
line 12
error: None of the promised groups for '/var/lib/samba/usershares'
exist -- see INFO logs for more
verbose: Additional promise info: version 'CFEngine Promises.cf
3.10.2' source path '/var/lib/cfengine3/inputs/debian-edu/cf.samba' at
line 12
verbose: File permissions on '/var/lib/samba/usershares' as promised
error: Errors encountered when actuating files promise
'/var/lib/samba/usershares'
verbose: A: Promise NOT KEPT!
verbose: P: END files promise (/var/lib/samba/usershares)
After installation the directory ownership is still the package default:
$ ls -ld /var/lib/samba/usershares/
drwxrwx--T 2 root sambashare 4096 22. Jun 08:17 /var/lib/samba/usershares/
The problem seems to be that the students group is defined in LDAP and
the server is either not running or cannot be reached.
On the installed system the "stduents" group does exist:
$ getent group students
students:*:10004:server-admin,newstudent,newteacher
This issue also affects bullseye.
--
Guido Berhoerster
Reply to: