You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Jupyter
Hi,
I've setup a Ubuntu machine with Active directory integration.
Any users on our domain can login at console successfully. When users log in a home directory is created.
Jupyter is running on this machine.
If the user has logged in the server via command line previously and their home directory exists, they can log into Jupyter successfully.
If they haven't logged in via command line before, then the follow error is displayed on the console. e.g the home directory doesn't exist.
spawning jupyterhub-singleuser --user=student --port=50123 --cookie-name=jupyter-hub-token-student --base-url=/user/student --hub-prefix=/hub/ --hub-api-url=http://localhost:8081/hub/api --ip=localhost Couldn't set CWD to /home/student ([Errno 2] No such file or directory: '/home/student') /usr/local/lib/python3.4/dist-packages/IPython/utils/path.py:310: UserWarning: IPython parent '/home/student' is not a writable location, using a temp directory. " using a temp directory.".format(parent))
Is their anyway to force the creation of the home directory when the AD user tries to login via Jupyter?
Many thanks for the help.
Matthias Bussonnier
unread,
Aug 22, 2015, 5:41:47 AM8/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jup...@googlegroups.com
Hi Adam,
If I remember corectly JupyterHub use unix PAM by default faut authentication.
What you want to do is write your custom authenticator[1][2] that probably also
plug into AD and triggers the user home creation at login.
I have no experience with AD, so I'm not sure.
You can also allow the system to create users with adduser [3]
but I suppose AD will make some extra step you want to make sure are done.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jup...@googlegroups.com
Adam,
What mechanism triggers the creation of the home directory, do you know? Is there a corresponding shell call? We can ensure this is called with a hook in the Authenticator when a user is added.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Jupyter
Check out pam_mkhomedir provided by libpam-modules.
Morgan Jones
unread,
Sep 4, 2015, 11:59:20 AM9/4/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Jupyter
Hi Adam,
I'm having the same issue. Have you made any progress?
I believe the issue is related to the functionality of the python "simplepam" module. I don't think it calls the "session" region of the /etc/pam.d/login service.
I have tested the login service with pamtester and the user home directory is created, but when simplepam calls the service the directory is not created.
I'm going to post an issue on github and see what hapens.
Cheers,
Morgan
Adam
unread,
Sep 9, 2015, 5:58:40 AM9/9/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Jupyter
Hi Morgan, I've been on holiday, but now I am back I am looking into this.
No progress so far, by using pam_mkhomedir or by running a script.
Looks like you have a response to the thread that you posted, that suggests that simplepam is the issue and that we should use Pamela instead.