dCache / dcache

dCache - a system for storing and retrieving huge amounts of data, distributed among a large number of heterogenous server nodes, under a single virtual filesystem tree with a variety of standard access methods
https://dcache.org
285 stars 136 forks source link

debian package does (no longer?) create user and group #3356

Open jstarek opened 7 years ago

jstarek commented 7 years ago

During the installation of dcache_3.1.12-1_all.deb on an Ubuntu 16.04 machine, the following error was logged:

# dpkg -i dcache_3.1.12-1_all.deb 
Selecting previously unselected package dcache.
(Reading database ... 148458 files and directories currently installed.)
Preparing to unpack dcache_3.1.12-1_all.deb ...
Unpacking dcache (3.1.12-1) ...
Setting up dcache (3.1.12-1) ...
chown: invalid group: ‘dcache:dcache’
dpkg: error processing package dcache (--install):
 subprocess installed post-installation script returned error exit status 1

A manual check showed that indeed, neither the user nor the group dcache were created.

https://github.com/dCache/dcache/issues/1803, however, reads like this has worked in the past. Because auto-creating users is the default behaviour in debianesque systems, it would be nice to have that behaviour back.

calestyo commented 6 years ago

That's strange... the only chown dcache:dcache that appear in the postinst, is in the same section (configure) that would also create a missing user/group.

The only error I see there is that it only checks for the user to exist:

if ! getent passwd dcache > /dev/null; then

and if not, creates user along with the group,... but there is no where a check which would create the group if that is missing, while the user is there. (Which, however, shouldn't happen in practise).

Could it be, that on your system group dcache was removed (or user dcache was created alone manually)?

Cheers, Chris.