0

I have a nodejs docker container and I will access some windows file shares. The problem ist that I can't access the shares because of missing domain user rights / context. Is there a way to pass user credentials with the fs commands?

The workaround at the moment is to run nodejs server on windows machine. So the script gets the rights of the user who starts the server. I'am not happy with this solutions because I can't use docker.

robert
  • 797
  • 3
  • 9
  • 23
  • You can do two things. 1. Run script with Administrator. 2. Give file access permission to user who run this script. – hurricane Oct 05 '17 at 06:42
  • Sure. That's the workaround I currently using. But what coould solve the problem when I execute the script on a unix/linux system. Thanks! – robert Oct 05 '17 at 07:18
  • 1
    May be you can look at this https://stackoverflow.com/questions/28036886/access-file-from-network-share-path-in-nodejs – hurricane Oct 05 '17 at 07:29
  • Thanks, mouting the drives on os first before accessing with nodejs could be an solution. I think there maybe is a smarter/faster way. – robert Oct 05 '17 at 07:58

0 Answers0