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

x/build: unify gomote push and gomote ssh users #23043

Open
randall77 opened this issue Dec 8, 2017 · 4 comments
Open

x/build: unify gomote push and gomote ssh users #23043

randall77 opened this issue Dec 8, 2017 · 4 comments
Labels
Builders x/build issues (builders, bots, dashboards) NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@randall77
Copy link
Contributor

When I "gomote push" to a gomote host, it writes all of the files and directories it copies over as user "root".
When I "gomote ssh", it logs me in as "gopher". At that point, I don't have permissions to modify any of the files or directories, so things like all.bash don't work when it tries to write anything.

$ ./all.bash
Building Go cmd/dist using /tmp/workdir/go1.4.
go install _/tmp/workdir/go/src/cmd/dist: open cmd/dist/dist: permission denied

At least, this is true on openbsd-amd64.

It would also be nice to set GOROOT_BOOTSTRAP to /tmp/workdir/go1.4 when ssh-ing in.
But only if it was already gomote pushed?

@bradfitz

@randall77 randall77 added the Builders x/build issues (builders, bots, dashboards) label Dec 8, 2017
@gopherbot gopherbot added this to the Unreleased milestone Dec 8, 2017
@bradfitz
Copy link
Contributor

bradfitz commented Dec 8, 2017

Thanks for the bug report. I'll try to make this easier and more painless.

Or at least I'll make its intro banner tell you what to do, if it can't do it itself.

For OpenBSD, IIRC, you can run "su" to use password "root" to get root. Then cd to $WORKDIR which it tells you. Probably /tmp/workdir.

@randall77
Copy link
Contributor Author

Yeah, I worked around it by doing cp -r /tmp/workdir /tmp/workdir2 and using workdir2 instead.

@randall77
Copy link
Contributor Author

su root with password root does work.

@bradfitz bradfitz added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 25, 2018
@bradfitz
Copy link
Contributor

/cc @dmitshur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builders x/build issues (builders, bots, dashboards) NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants