Skip to content

Make minimum UID/GID configurable via multiuser.minuid/mingid#69

Open
djw8605 wants to merge 1 commit into
masterfrom
claude/xrootd-configurable-gids-ujuplb
Open

Make minimum UID/GID configurable via multiuser.minuid/mingid#69
djw8605 wants to merge 1 commit into
masterfrom
claude/xrootd-configurable-gids-ujuplb

Conversation

@djw8605

@djw8605 djw8605 commented Jul 12, 2026

Copy link
Copy Markdown
Member

The UID/GID thresholds below which a mapped username is rejected as a
system account were hard-coded to 500 (g_minimum_uid / g_minimum_gid).
Sites that mount shared file systems (e.g. Lustre) may have legitimate
groups with IDs below 500, which were being denied access.

Convert the thresholds to static members of UserSentry (single definition
with external linkage, mirroring m_is_cmsd) so a value set at config time
is seen across all translation units, and parse two new optional config
directives, multiuser.minuid and multiuser.mingid, in
MultiuserFileSystem::Config(). Both default to 500, preserving existing
behavior. The effective thresholds are logged at startup.

Closes #68

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01UFwX4qfurnnEvbPtzL46ZL

The UID/GID thresholds below which a mapped username is rejected as a
system account were hard-coded to 500 (g_minimum_uid / g_minimum_gid).
Sites that mount shared file systems (e.g. Lustre) may have legitimate
groups with IDs below 500, which were being denied access.

Convert the thresholds to static members of UserSentry (single definition
with external linkage, mirroring m_is_cmsd) so a value set at config time
is seen across all translation units, and parse two new optional config
directives, multiuser.minuid and multiuser.mingid, in
MultiuserFileSystem::Config(). Both default to 500, preserving existing
behavior. The effective thresholds are logged at startup.

Closes #68

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UFwX4qfurnnEvbPtzL46ZL
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.

Can we make g_minimum_uid and g_minimum_gid configurable ?

2 participants