Mounted Directory not shown in JupyterHub (group problem?

Hi,

I have a directory mounted from a Windows server with

file_mode=0660,dir_mode=0770

and group

user

when a user of that group logs in via putty, he can access the mounted directory and work with files as expected.

But on a shell in JupyterHub he gets

access denied

When I set

dir_mode=0777

it works, but obviously not everybody should be able to access the folder.

Is this normal behavior, a bug unr my incometence that is causing this?

Any hints welcome!

Marc

Can you share logs from the user server? It will hopefully have logged a more informative error about exactly why it’s refusing to serve the file.

JupyterHub is not officially supported on Windows, but this seems like a Jupyter Server issue. Unless it’s in how the server process is started, in which case it’s a JupyterHub Spawner issue.

ah! no no! JupyterHub is not running on Windows!
Standard Linux Server. Only the share is mounted from windows!

Should there be a log for a simple cd on the terminal?

I have a symlink to the mountpoint.
The symlink is also not shown in the Jupyter file browser…

I had a look at the log, but do not find any error messages, only tons of gets and some postst and stuff…
What should I look for?

Sorry, I misunderstood what was happening, thanks for clarifying. There won’t be logs for individual shell commands. What does ls -l show in the parent directory of the mount, and what is the error output for trying to list the directory? What Spawner are you using and version of JupyterHub and spawner package?

What is the output of id?

Hi,

sorry for the delay. I was under fire for a while :fire:…

Reading your comment, I realized, that the whole problem was caused by the symlink not having the right group. It had “root” and should have been “user”.

Once the symlink having the right group, everything worked like a charm.

Thank you very much!

Marc

1 Like