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

Updating notebooks using Git pull changes owner to root #4

Open
vincentdavis opened this issue Dec 16, 2015 · 3 comments
Open

Updating notebooks using Git pull changes owner to root #4

vincentdavis opened this issue Dec 16, 2015 · 3 comments

Comments

@vincentdavis
Copy link

If you use git pull to update the notebooks the changed files get the owner and group root:root. This makes the notebook unable to be saved. I tried correcting this locally(docker) by using the $chown --preserve[=ATTR_LIST] but that did not seem to work for some reason.

@vincentdavis
Copy link
Author

I think the solution is to use switch users with $su jupyternotebook.

@tiagoantao
Copy link
Member

I just updated the docker images at docker hub, so this problem is now mitigated. I will leave this open as this is something to be sorted out.

@vincentdavis
Copy link
Author

Looking at this issue again, It is possible to do the git pull from a notebook. The notebook runs as the correct user "jupyteruser". If the parent biopython-notebook is owned by "jupyteruser" then from within a notebook you can execute, for example;

%%bash
git pull

What do you think of making this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants