mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-05 01:27:28 +00:00
[PR #122] Feature: Optional adding the OS user to a OS group #127
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/open-terminal#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-terminal/pull/122
Author: @ohmer1
Created: 5/6/2026
Status: 🔄 Open
Base:
main← Head:feature-add-usergroup📝 Commits (1)
e410702Optional adding the OS user to a OS group📊 Changes
2 files changed (+10 additions, -0 deletions)
View changed files
📝
open_terminal/env.py(+5 -0)📝
open_terminal/utils/user_isolation.py(+5 -0)📄 Description
This PR adds an OS user to an existing OS group. This feature is used to further restrict sudo privileges by limiting them to runas members of a specific group only. Here is an example :
The USER_GROUP variable have
otusersas value. The USER_PREFIX haveot_as value. The service run asopenterminaluser. My sudoers file is the following.The service's privileges are constrained on two fronts:
This ensures the service cannot gain unrestricted root access or impersonate arbitrary users, significantly limiting its attack surface. I also constrained the systemd service, but this is out of scope of this PR and doesn't require patch.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.