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

Incorrect group used for chown in spec file for repo install via RHEL #8945

Open
cory-usap opened this issue Feb 5, 2025 · 0 comments
Open

Comments

@cory-usap
Copy link

cory-usap commented Feb 5, 2025

Environment:

  • OS name: RHEL
  • OS version: 9
  • Architecture: x86_64
  • ntopng version/revision: 6.2.250204-25099

What happened:
During install I noticed some lines:

  Running scriptlet: ntopng-6.2.250204-25099.x86_64                                                                                                                                  57/59
Creating ntopng user...
usermod: no changes
Adding user ntopng to group systemd-journal...

  Installing       : ntopng-6.2.250204-25099.x86_64                                                                                                                                  57/59
warning: group ntopng does not exist - using root

  Running scriptlet: ntopng-6.2.250204-25099.x86_64                                                                                                                                  57/59
/bin/chown: invalid group: ‘ntopng:ntopng’
/bin/chown: invalid group: ‘ntopng:ntopng’

After doing a dnf reinstall the same message persisted.

How did you reproduce it?
Installing the package on RHEL 9 (could be any RHEL based looking at the spec file in stable - if this is the correct one 6.2-stable/packages/ntopng.spec.in).

In particular I ran

dnf install -y ntopng
# and for reinstall
dnf reinstall -y ntopng

Potential fix
The issue seems to be line 6.2-stable/packages/ntopng.spec.in#L202 as on line 158 it creates just an ntop group. It seems like ntop group is the desired one?

I did run

/bin/chown ntopng:ntop /usr/bin/ntopng-config
/bin/chmod gou+s /usr/bin/ntopng-config
/bin/chown -R ntopng:ntop /etc/ntopng

After to be sure permissions were set correctly

Thank you!

@cory-usap cory-usap changed the title Incorrect group used in spec file for repo install Incorrect group used in spec file for repo install via RHEL Feb 6, 2025
@cory-usap cory-usap changed the title Incorrect group used in spec file for repo install via RHEL Incorrect group used for chown in spec file for repo install via RHEL Feb 6, 2025
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