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

Comments

Projects
None yet
3 participants
@randall77
Contributor

randall77 commented Dec 8, 2017

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 label Dec 8, 2017

@gopherbot gopherbot added this to the Unreleased milestone Dec 8, 2017

@bradfitz

This comment has been minimized.

Member

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

This comment has been minimized.

Contributor

randall77 commented Dec 8, 2017

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

@randall77

This comment has been minimized.

Contributor

randall77 commented Dec 8, 2017

su root with password root does work.

@bradfitz

This comment has been minimized.

Member

bradfitz commented Oct 25, 2018

/cc @dmitshur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment