UID/GID can't be edited (especially builtins)

Description

UID and GID cannot be changed once created.

An existing user/group could be destroyed and recreated to make such a change, but it should be possible to simply change the number.

Granted this leaves files with invalid ownership, but that can easily be mitigated by searching for the old UID/GID and updating them to the new. This could be an automatic or optional step performed when making the ID change. Alternatively, point to instructions on how to perform the change manually or simply display a warning to indicate the issue.

This is of particular importance for builtin users/groups, which may conflict with a user/group on another network or even that existed prior to the builtin being created by FreeNAS/TrueNAS.

For background: I opened because I have an existing user/group that conflicts with the builtin user/group that TrueNAS creates. They have the same name, but differing UID/GID. The incoming PR (7523) for that proposes to "fix" this issue will rename my existing user/group to append a number to them. These user/group entries actually predate when they were introduced by FreeNAS/TrueNAS and I consider this change to be kinda hostile.

It seems to me that a better fix would be to allow changing the UID/GID of the builtin user/group.

This would allow better integration with other systems that also have that same user/group and UID/GID.

Activity

Show:

Kris MooreJuly 18, 2024 at 5:56 PM

Thank you for submitting this feature request! To better accommodate and gauge community interest for future versions of TrueNAS we have moved the submission process to our TrueNAS Community Forums. If this feature is still important and relevant for consideration, please refer to the links below on how to submit it for community voting and TrueNAS roadmap review.

Feature Requests Forum:
https://forums.truenas.com/c/features/12

Feature Requests FAQ:
https://forums.truenas.com/t/about-the-feature-requests-category-readme-first/8802

Jacob BlockNovember 4, 2021 at 12:30 AM
Edited

I'll +1 this. In particular, (sorry, not the bug closed but the PR) changed NFS share mapall access to the built-in group instead of the renamed group. I'm not sure if the previous ACL allowed for either the userland UID/GID + the built-in UID/GID. Either way, allowing updates to the uid/gid for built-ins would be preferred.

William GryzbowskiSeptember 14, 2021 at 1:39 PM

Moving to a Suggestion since its not a bug, waiting for feedback and votes from community.

Unresolved

Details

Priority

Assignee

Reporter

Components

Affects versions

More fields

Katalon Platform

Created September 14, 2021 at 1:26 PM
Updated July 18, 2024 at 6:01 PM