Skip to content

fix: verify group exists #875

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix: verify group exists #875

wants to merge 2 commits into from

Conversation

andrea11
Copy link

@andrea11 andrea11 commented Jun 2, 2025

The purpose of this PR is to fix an issue that is there when try to change the ownership of file systems.
Currently, depending on different versions of Ubuntu, the syslog group can or cannot be there. Therefore, I added a check and eventually create the missing groups.
This is linked to #614 and #746.

I am not sure that my approach is the correct one. Maybe, if a group does not exists, we should just use 'root' instead. What is your advice?

Signed-off-by: andrea11 <10788630+andrea11@users.noreply.github.com>
@rndmh3ro
Copy link
Member

rndmh3ro commented Jun 2, 2025

LGTM. Can you please fix the linting-errors?

Signed-off-by: andrea11 <10788630+andrea11@users.noreply.github.com>
@andrea11
Copy link
Author

andrea11 commented Jun 2, 2025

@rndmh3ro can you merge this PR?

@andrea11
Copy link
Author

andrea11 commented Jun 6, 2025

Anyone could merge this PR? (@rndmh3ro)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants