LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2017, 12:29 PM   #1
pedpup2
LQ Newbie
 
Registered: May 2017
Location: Fairfield, Iowa, USA
Distribution: Puppy Linux Tahr 6.0.5
Posts: 8

Rep: Reputation: Disabled
accessing linux shared folder from node.js


This is a puzzling one.
I have a shared folder on a PC running SolydXK(Debian-based). Samba shares
out the folder fine, and I can see it in
the file manager from another PC on network running
Debian 8.

I have some code in node.js that needs a path to that folder to grab its
contents. File manager shows it as "smb://solydx-dw/schedule", but when I feed
that to the fs.readdir() function in Node, it chokes. Invalid directory..

I went looking for a mount point for the share, but could not find one.
I also read that linux no longer uses mount points for network shares...

How can I get a valid path to use for this?
Thanks for any ideas..
 
Old 08-19-2017, 01:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,428

Rep: Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105
file managers use a built in samba client virtual file system so you don't have to be root or have a line in the fstab file to access remote shares but you can still use mount points. It might be accessible /run/user/... but only if it is mounted by the file manager first.

In your case I would mount it via fstab.
 
Old 08-21-2017, 12:02 PM   #3
pedpup2
LQ Newbie
 
Registered: May 2017
Location: Fairfield, Iowa, USA
Distribution: Puppy Linux Tahr 6.0.5
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks

Hi Michaelk,

Good suggestions. I found a workable solution, using
mount.cifs . This allowed me to mount the remote share
in /media, which gave me a path to use. And it works
just fine. If I have to retain the association more
permanently, I'll use your fstab solution.
 
  


Reply

Tags
debian, network, node.js, samba, sharing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem in Accessing folder from windows xp to fedora's shared folder uk.engr Linux - Newbie 4 07-21-2012 03:39 AM
Accessing shared folder via Windows 7, with root level? ChristianB Linux - Server 0 07-18-2012 08:57 AM
Accessing to Vista shared folder through LAN. reaperatusy Linux - Newbie 2 03-22-2009 03:37 AM
Accessing Linux shared folder from Windows XP bekiricli Linux - Newbie 8 02-10-2009 04:50 PM
accessing a shared folder on a server dimitri358 Linux - Software 3 02-16-2004 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration