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

win32api Paths.py #390

Open
JattMones opened this issue Jan 16, 2024 · 0 comments
Open

win32api Paths.py #390

JattMones opened this issue Jan 16, 2024 · 0 comments

Comments

@JattMones
Copy link

Jupyter core was working fine in my application, but I recently ran into issues getting a SAM user in the Paths.py file.

Error: No mapping between account names and security IDs was done

I tried restarting the computer and running scan commands to clean up files that had been corrupted. Neither worked.

Env info: Windows Server 2016.

Under the "win32_restrict_file_to_user" function (Paths.py file), I changed user, _domain, _type = win32security.LookupAccountName( "", win32api.GetUserNameEx(win32api.NameSamCompatible)
to
user, _domain, _type = win32security.LookupAccountName("", win32api.GetUserName())

This worked

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

No branches or pull requests

1 participant