Skip to content

Conversation

@BlackIkeEagle
Copy link
Contributor

See: #272

@BlackIkeEagle BlackIkeEagle force-pushed the feature/linux-snclient-user branch 7 times, most recently from 1ba6441 to a0d52fd Compare January 21, 2026 10:44
@BlackIkeEagle BlackIkeEagle changed the title run snclient as snclient user in systemd based distros run snclient as snclient user on linux Jan 21, 2026
@BlackIkeEagle BlackIkeEagle marked this pull request as ready for review January 21, 2026 10:59
Copy link
Contributor

@sni sni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great and i think we definitely should do this.
I will do some tests hopefully during the next days.

@sni
Copy link
Contributor

sni commented Feb 10, 2026

i am wondering if the sudo changes are actually required for something? Sudo is not used except in the tests so far. And if it's only used during testing, i don't think it should be part of the packaging.
What do you think?

@BlackIkeEagle
Copy link
Contributor Author

Do you mean the addition of the sudoers file with Defaults:snclient !requiretty ? This comes from experience on Almalinux where we could not properly run custom scripts via snclient.

The hard dependency on sudo might be changed to a opt-depend I guess.

@sni
Copy link
Contributor

sni commented Feb 11, 2026

ah, didn't see there is a dependency on sudo. There is one for alpine but ex. not for deb or rpm. Does it make sense to add it for all of them?

@BlackIkeEagle
Copy link
Contributor Author

Ah, I forgot then if it is not there in the deb and rpm. But on second thought sudo can be an optdepend perfectly fine, and if doas or other privilege escalation stuff is confirmed working that could be added as well?

@sni
Copy link
Contributor

sni commented Feb 11, 2026

well, personally i'd prefer not having anything sudo related in the "base" packages here since it is kinda out of scope. The snclient itself does not use sudo. Sure, you can use it in external commands, but so you can with any other command.

@BlackIkeEagle
Copy link
Contributor Author

Ah oops, will rebase then, without sudo related stuff

@sni
Copy link
Contributor

sni commented Feb 11, 2026

great, thanks. Could you please also remove the sudoers/snclient? I think it's more confusing then helping and if you use sudo in your setup, you have to roll out a sudo config anyway.

See: ConSol-Monitoring#272
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
See: ConSol-Monitoring#272
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
@BlackIkeEagle BlackIkeEagle force-pushed the feature/linux-snclient-user branch from eac3685 to 27e569e Compare February 11, 2026 14:12
@BlackIkeEagle
Copy link
Contributor Author

The rebase should have all traces of sudo removed if I did not miss anything

@sni
Copy link
Contributor

sni commented Feb 12, 2026

Looks good. Thanks for all the work. I'll wait till after the next release to merge this, so we can properly announce this change.

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

Successfully merging this pull request may close these issues.

2 participants