Add newgrp command (run command in different group)

Open
#94 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust

Research direction

Start by locating the repository's existing command implementations and any Windows token-handling entry points. Read the behavior of /bin/newgrp and the referenced SetTokenInformation call with TokenPrimaryGroup, then verify that the command runs a supplied command under the selected group. The issue names no tests, so completion should include suitable coverage for the new command's behavior.

Written by the indexing model from the issue text.

Description

C-feature

Add /bin/newgrp command. That command allows to run a new command in a different group.

Windows has this capability, as demonstrated by SFU, Cygwin, MSYS2.

This can easily be implemented by taking a sid of a group from the thread token, and set it via SetTokenInformation(tok, TokenPrimaryGroup, ...)

Dominant language
Rust
Stars
5.2k
Forks
107
Avg merge
2d 19h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/coreutils

All issues in microsoft/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.