-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Windows standard user cannot run any node 6 js file on mapped path #7192
Comments
I suspect this has to do with our realpath not properly handling reparse points. |
Probably irrelevant but I've been happily using npm link on a locally attached drive path. But that being an ntfs thing I assume node shouldn't even see it. But I'm not surprised I can't use a symlink on a mapped unc path. Just in case that clarifies anything. |
Can you elaborate on this, or is there an issue already addressing this? |
@trevnorris This is the issue referencing that. I plan on looking into it this week (finally). I'm not sure if reparse points (used to implement links on NTFS for example) are the culprit here (I have come to think they aren't), but there is certainly something to be done for mapped drives in |
@Jackbennett Is that a samba share? I just tested it by mapping a share on my OSX laptop and doing a |
Yes this is mapped from a fully patch 2012 server. Not r2. I find the issue is when you don't have permissions to access parent folders but you do for the child folder target being mapped. e.g. edit: and to be clear If I can get time I'll test a user that can read the whole folder path. This works for myself as a sysadmin I can get to that whole path. I wonder if you share a folder and remove your permissions to its parents if osx can show the same behaviour. |
@Jackbennett thanks! Just to confirm this is related to #3594 or not: does this work for you on Node v4? |
We've got a class happily using node v4 anywhere in the school. This was only an issue in a room I deployed v6 to. |
Damn. Thanks for confirming. |
Does #7559 fix this? |
Trying to play along at home here too ;) Even if the path |
This reverts parts of nodejs@b488b19 restoring javascript implementation of realpath and realpathSync. Fixes: nodejs#7175 Fixes: nodejs#6861 Fixes: nodejs#7294 Fixes: nodejs#7192 Fixes: nodejs#7044 Fixes: nodejs#6624 Fixes: nodejs#6978
Seems related to #7175 because of #3594.
The only folder our users can write to is their home at
N:\
which is a map of\\servername\share$\students\group\**userHome**
. Bold is the only folder that doesn't return a permission error "operation not permitted" withfs.statSync()
run from a normal powershell command prompt;
note: permTest/index.js is just a module that does the above pasted fs.access tests.
This happens when trying to execute any file with node.
The text was updated successfully, but these errors were encountered: