-
Notifications
You must be signed in to change notification settings - Fork 450
Add GIT_SYNC_ROOT change for non-root user in docs/ssh #354
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
Conversation
|
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Welcome @shubhamc183! |
thockin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also needs you to sign CLA. Thanks!
docs/ssh.md
Outdated
| change these last blocks to any UID/GID you like. SSH demands that the current | ||
| UID be present in /etc/passwd, so in this case you will need to add the | ||
| `--add-user` flag to git-sync's args array. | ||
| `--add-user` flag to git-sync's args array. Also, you need to change `GIT_SYNC_ROOT` to some other location, say `/workspace`, instead of `$HOME/git` as the `$HOME` will be `/` for the user and, `GIT_SYNC_ROOT` will end up in `//tmp` which do not exist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nit-pick - can you please linewrap to match the rest? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also "//tmp which do not exist" -> "//git which the non-root user can't create"
docs/ssh.md
Outdated
| `--add-user` flag to git-sync's args array. Also, you need to change | ||
| `GIT_SYNC_ROOT` to some other location, say `/workspace`, instead of | ||
| `$HOME/git` as the `$HOME` will be `/` for the user and, `GIT_SYNC_ROOT` will | ||
| end up in `//git` which do not exist. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last pick: s/do/does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I did not understand this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, - please change "do" to "does" (blame English)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I changed it to "//git which the non-root user can't create" as suggested by you previously.
Also, I created an account in Linux Foundation ID Portal account with the correct same e-mail address but didn't get the email agreement to sign for CLA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@caniszczyk - how can we poke the CLA machinery to check this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure it was the same email you used for this commit (sh...183@gmail.com) ?
Check your spam and make sure? We're stuck until it is resolved. :(
docs/ssh.md
Outdated
| `--add-user` flag to git-sync's args array. | ||
| `--add-user` flag to git-sync's args array. Also, you need to change | ||
| `GIT_SYNC_ROOT` to some other location, say `/workspace`, instead of | ||
| `$HOME/git` as the `$HOME` will be `/` for the user and, `GIT_SYNC_ROOT` will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we wait for CLA - the , in this sentence is not needed :)
|
Thanks! /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shubhamc183, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I'm told you can open a ticket at https://support.linuxfoundation.org/ for CLA issues. |
|
/check-cla |

https://github.com/kubernetes/git-sync/pull/97\#issuecomment-800606819