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

Dynamic users' home directories are set to '/' #96

Open
simonello opened this issue Apr 27, 2022 · 3 comments
Open

Dynamic users' home directories are set to '/' #96

simonello opened this issue Apr 27, 2022 · 3 comments
Labels

Comments

@simonello
Copy link

Here are the details of the dynamic user created.

(base) [root@jupyter jupyterenv]# getent passwd jupyter-someuser-singleuser
jupyter-someuser-singleuser:*:65492:65492:Dynamic User:/:/sbin/nologin
(base) [root@jupyter jupyterenv]# 

And here is one of the issues it causes.

[jupyter-someuser-singleuser@jupyter ~]$ ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa): 
Could not create directory '//.ssh': Read-only file system
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Saving key "//.ssh/id_rsa" failed: No such file or directory
[jupyter-someuser-singleuser@jupyter ~]$ 

Here are the relevant variables.

USER=jupyter-someuser-singleuser
PWD=/var/lib/someuser
HOME=/var/lib/someuser
MAIL=/var/spool/mail/jupyter-someuser-singleuser
LOGNAME=jupyter-someuser-singleuser

How do I configure systemdspawner to set users to the correct home directory?

@simonello simonello added the bug label Apr 27, 2022
@welcome
Copy link

welcome bot commented Apr 27, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@simonello
Copy link
Author

Looks like this is an old existing issue with systemd..

systemd/systemd#9652

@ivan-tkatchev
Copy link

Looks like this is an old existing issue with systemd..

systemd/systemd#9652

No, it is an entirely different issue. @simonello pasted the output of getent - user entries exist, but contain incorrect information.

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

No branches or pull requests

2 participants