Repository navigation
Windows standard user cannot run any node 6 js file on mapped path #7192
Description
Activity
- addedfsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
on Jun 7, 2016 - addedwindowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Jun 7, 2016 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.
I suspect this has to do with our realpath not properly handling reparse points.
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
uv_fs_realpath.@Jackbennett Is that a samba share? I just tested it by mapping a share on my OSX laptop and doing a
fs.realpathSyncon it works for me.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.
\\server\Allstudents\yearX\usernameobviously the user account only hasRWXto username and nothing at all betweenserver\toserver\Allstudents\yearX\edit: and to be clear
N:\is mapped to\\server\Allstudents\yearX\usernameIf 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
n:\is being resolved to\\a\b\cWhy is node trying to do anything to\\aor\\a\b\which causes it to crash. It only needs to touch\\a\b\cor down to\\a\b\c\node_modules?- added a commit that references this issue
on Aug 15, 2016 - added a commit that references this issue
on Jul 27, 2026
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.