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

Exit when tljh-config is called as non-root #232

Merged
merged 1 commit into from Oct 18, 2021

Conversation

yuvipanda
Copy link
Collaborator

  • Previously, we only printed warning and did not exit
  • Split the warning over two lines rather than one
  • -E is not required for tljh-config anymore (since it is in
    /usr/bin, not /usr/local/bin), so do not ask users to use it.
    Move tljh-config symlink to /usr/bin #135
    is the PR that made this change, and changed documentation in
    most places.

Followup #120

  • Add tests

- Previously, we only printed warning and did not exit
- Split the warning over two lines rather than one
- -E is not required for tljh-config anymore (since it is in
  /usr/bin, not /usr/local/bin), so do not ask users to use it.
  jupyterhub#135
  is the PR that made this change, and changed documentation in
  most places.
@minrk
Copy link
Member

minrk commented Dec 3, 2018

I think warning and not exit is the right thing to do, since properly configured admin permissions shouldn't require root, only erroring if/when there is an actual permission error. What do you think?

@yuvipanda
Copy link
Collaborator Author

Sorry to get back on to this so late!

@minrk I thought we had given up on trying to make this work for admins without root? (#51)

@consideRatio
Copy link
Member

I'm not sure what I think would be best with regards to a decisive exit or emitting a warning - I lean towards exit as I value a decisive error message.

No matter on the topic on warning vs error, I think this part is relevant and should not be lost by just closing this PR.

  • -E is not required for tljh-config anymore (since it is in
    /usr/bin, not /usr/local/bin), so do not ask users to use it.
    Move tljh-config symlink to /usr/bin #135
    is the PR that made this change, and changed documentation in
    most places.

@yuvipanda
Copy link
Collaborator Author

Ya given #51 I think this is ready to merge as is

@consideRatio consideRatio merged commit 1bdc9e9 into jupyterhub:master Oct 18, 2021
@consideRatio
Copy link
Member

Let's go for it!

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

3 participants