Repository navigation
Add the admin user to the video group - #17
Conversation
The admin user created by Setup Station is now also a member of the video group, so it can access video devices such as DRM without extra setup.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe admin-user creation flow now assigns membership in the video group, enabling access to video devices such as DRM without additional configuration. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="setup_station/system_calls.py" line_range="465" />
<code_context>
'-m',
'-d', homedir,
- '-G', 'wheel,operator'
+ '-G', 'wheel,operator,video'
],
input=password,
</code_context>
<issue_to_address>
**Admin account creation aborts**
When the target system lacks a `video` group, `pw useradd` rejects the supplementary-group list, and `check=True` raises `CalledProcessError` before the admin account is created. Since the root password has already changed, the setup flow stops with setup partially applied.
Add `video` to the supplementary-group list only when that group exists on the target system.
Also at `setup_station/system_calls.py:466`.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 1 finding to address first, and every admin account created with this change gets access to devices restricted to the video group; if that default is wrong, the extra access is granted without an error to flag it. Reverting stops future grants but does not remove the group from accounts already created.
Blocking findings: setup_station/system_calls.py:465
| '-m', | ||
| '-d', homedir, | ||
| '-G', 'wheel,operator' | ||
| '-G', 'wheel,operator,video' |
There was a problem hiding this comment.
🟠 High · Admin account creation aborts
When the target system lacks a video group, pw useradd rejects the supplementary-group list, and check=True raises CalledProcessError before the admin account is created. Since the root password has already changed, the setup flow stops with setup partially applied.
Add video to the supplementary-group list only when that group exists on the target system.
Also at setup_station/system_calls.py:466.
Prompt for AI agents
In `setup_station/system_calls.py` at line 465:
**Admin account creation aborts**
When the target system lacks a `video` group, `pw useradd` rejects the supplementary-group list, and `check=True` raises `CalledProcessError` before the admin account is created. Since the root password has already changed, the setup flow stops with setup partially applied.
Add `video` to the supplementary-group list only when that group exists on the target system.
Also at `setup_station/system_calls.py:466`.
The admin user created by Setup Station is now also a member of the video group, so it can access video devices such as DRM without extra setup.
Summary by Sourcery
New Features: