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

[Feature Request]: Improve SETUID/SETGID handling during startup #397

Closed
agross opened this issue Nov 3, 2023 · 2 comments
Closed

[Feature Request]: Improve SETUID/SETGID handling during startup #397

agross opened this issue Nov 3, 2023 · 2 comments
Labels
enhancement It's not a bug, but it's worth an enhancement.

Comments

@agross
Copy link
Contributor

agross commented Nov 3, 2023

Description / Beschreibung

if [[ "$setgid" != "$(cat /etc/group | grep 'iobroker:' | cut -d':' -f3)" || "$setuid" != "$(cat /etc/passwd | grep 'iobroker:' | cut -d':' -f3)" ]]; then

The cat/grep/cut pipeline can be replaced by:

  • id -u iobroker to get the user ID
  • id -g iobroker to get the group ID

of the iobroker user.

@agross agross added the enhancement It's not a bug, but it's worth an enhancement. label Nov 3, 2023
@buanet
Copy link
Owner

buanet commented Nov 3, 2023

👍 +1

@buanet
Copy link
Owner

buanet commented Nov 6, 2023

Done in v9.1.0-beta.2.
Thank you!

@buanet buanet closed this as completed Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement It's not a bug, but it's worth an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants