Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chown: invalid group after setting daemonGroup #999

Closed
ericsmitt opened this issue Jun 8, 2017 · 0 comments
Closed

Chown: invalid group after setting daemonGroup #999

ericsmitt opened this issue Jun 8, 2017 · 0 comments

Comments

@ericsmitt
Copy link

ericsmitt commented Jun 8, 2017

Expected behaviour

It doesn't add group 'defender' in postinst after this setting:
daemonGroup in Linux := "adm"

Project settings

daemonGroup := "adm", // group with read rights /var/log/auth.log
daemonUser in Linux := "defender",
daemonGroup in Linux := "adm", // group with read rights /var/log/auth.log

Actual behaviour during installation

Selecting previously unselected package defender.
(Reading database ... 252290 files and directories currently installed.)
Preparing to unpack .../defender_0.1.1-SNAPSHOT_all.deb ...
Unpacking defender (0.1.1-SNAPSHOT) ...
Setting up defender (0.1.1-SNAPSHOT) ...
Creating system user: defender in adm with defender daemon-user and shell /bin/false
chown: invalid group: ‘defender:defender
dpkg: error processing package defender (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
defender

Postinst script

addGroup adm ""
addUser defender "" adm "defender daemon-user" "/bin/false"

chown defender:defender /var/lib/defender/persistence/journal
chown defender:defender /var/lib/defender/persistence/snapshots
chown defender:adm /var/log/defender

@ericsmitt ericsmitt changed the title Chown: invalid group after setting custom daemonGroup Chown: invalid group after settingdaemonGroup Jun 9, 2017
@ericsmitt ericsmitt changed the title Chown: invalid group after settingdaemonGroup Chown: invalid group after setting daemonGroup Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant