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

Don't create home publicly readable #169

Merged
merged 2 commits into from Sep 3, 2018

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Aug 29, 2018

World-Readable seem to be a surprising default for many people,
especially in teaching context. Switch to a more reasonable rwxr-x---

We have to issue a chmod, as changing at creation time would require
changin /etc/adduser.conf DIR_MODE=0760 (or whatever), but that seem
unwise.

We do not set the exact permission in case the DIR_MODE is more
restrictive.

Closing #158

  • Add / update documentation
  • Add tests

(cc @mstobb)

One question is do we want that to be configurable ? I tend to think no.

World-Readable seem to be a surprising default for many people,
especially in teaching context. Switch to a more reasonable rwxr-x---

We have to issue a chmod, as changing at creation time would require
changin /etc/adduser.conf DIR_MODE=0760 (or whatever), but that seem
unwise.

We do not set the exact permission in case the DIR_MODE is more
restrictive.

Closing jupyterhub#158
@minrk
Copy link
Member

minrk commented Aug 31, 2018

I don't think it needs config. Do you want to add a test to verify that a user's dir isn't world-readable?

@Carreau
Copy link
Member Author

Carreau commented Sep 1, 2018

Do you want to add a test to verify that a user's dir isn't world-readable

I should right ? I've added tests, let's see if they pass.

@Carreau
Copy link
Member Author

Carreau commented Sep 1, 2018

Circle is happy !

@minrk minrk merged commit d0b1e5c into jupyterhub:master Sep 3, 2018
@minrk
Copy link
Member

minrk commented Sep 3, 2018

Nice!

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

Successfully merging this pull request may close these issues.

None yet

2 participants