Allow 'copr' user to run 'sign' command

See https://pagure.io/copr/copr/issue/636

By default only root can run the `sign` command. This
check is applied within obs-signd code. We need to
allow regular user in the config, see `man sign.conf`.

Also /usr/bin/sign is owned by root:obsrun with
-rwsr-x--- hence we need to add a user to the obsrun group.
This commit is contained in:
Jakub Kadlčík 2019-04-04 13:50:23 +02:00
parent 478e356787
commit f8060b5a90
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@
# pre-create copr user and group with predefined uid and gid
- group: name=copr gid=986
- user: name=copr group=copr uid=989
- user: name=copr group=copr uid=989 groups=obsrun
- name: install copr-backend and copr-selinux
dnf:

View file

@ -1 +1,2 @@
server: {{ keygen_host }}
allowuser: copr