Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/exec: support uid/gid #4920

Closed
gopherbot opened this issue Feb 26, 2013 · 12 comments
Closed

os/exec: support uid/gid #4920

gopherbot opened this issue Feb 26, 2013 · 12 comments
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. FrozenDueToAge
Milestone

Comments

@gopherbot
Copy link
Contributor

by brady:

The golang Cmd module is pretty nifty, but lacks the ability to change user id, or group
id before executing. Given that its hard to tap into the fork/exec model any other way
it seems that the ability to do this in Cmd would be really useful.
@bradfitz
Copy link
Contributor

Comment 1:

In the meantime, you can see how I did it in runsit: https://github.com/bradfitz/runsit
... see exec.go in particular.

@bradfitz
Copy link
Contributor

Comment 2:

Labels changed: added priority-later, removed priority-triage, go1.1maybe.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 3:

Labels changed: added go1.2maybe.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 4:

Labels changed: added feature.

@robpike
Copy link
Contributor

robpike commented Aug 19, 2013

Comment 5:

Deferring to 1.3.

Labels changed: added go1.3maybe, removed go1.2maybe.

@robpike
Copy link
Contributor

robpike commented Aug 20, 2013

Comment 6:

Labels changed: removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 7:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 8:

Labels changed: removed feature.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 9:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 10:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@bradfitz
Copy link
Contributor

bradfitz commented Feb 2, 2017

@ianlancetaylor, how hard would this be?

@bradfitz bradfitz added the FeatureRequest Issues asking for a new feature that does not need a proposal. label Feb 2, 2017
@ianlancetaylor
Copy link
Member

I guess I don't understand the request, because even when it was written it was possible to set user ID and group ID in os/exec, via SysProcAttr.Credential. Support for that was added in https://golang.org/cl/4280065.

Closing, but please comment if I misunderstood.

@golang golang locked and limited conversation to collaborators Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

5 participants