14

I have a software archiving solution which requires a Windows share for the client but I want to actually store the files through samba on a Linux host.

This dependency requires that I have a Windows front-end to my Linux file archive.

When I map the Linux Samba share on the client as a drive, I cannot "share" it for the server to see.

I tried making a shortcut as well, but no sharing options

Is there a way to create a Windows folder that can be shared and as well, be able to write files to a Samba network share?

Bruce Chidester
  • 621
  • 1
  • 5
  • 16

6 Answers6

11

Yes you can !

On W2008R2: Go into

Server Manager -Roles --Install File Services ---Install File Server & Distributed File System (DFS) Namespaces and Replication

Now you can go on Administrative tool - DFS Management - and in namespace you can add you share map drive

Neoaurel
  • 154
  • 5
4

Dont know why there are down votes for user3613052's answer. MKLink will be able to do that. It creates a symbolic link to the shared folder which can then be shared.

MKLink /D D:\newlink \\networkpc\folder

Net Share Media=D:\newlink

Then you can access the drive by \\yourpc\newlink

http://www.edugeek.net/forums/windows-7/78598-re-sharing-mapped-shared-drive.html#post700170

Arun Christopher
  • 302
  • 1
  • 6
  • 20
  • 9
    I consistently get ACCESS DENIED when following this procedure. All machines -- the client, the intermediate, and the destination -- are in the same domain, on the same subnet, and I am using the same domain user in all instances. Yet I get ACCESS DENIED. – Ross Presser Mar 10 '16 at 23:54
2

DFS is indeed the answer.

map network drive. R-click to creat shortcut for that mapped drive.

Open DFS (as stated above) new namespace, enter name of server, enter any name for folder

Once created, copy/move your shortcut into the namespace folder Default location is c:\dfsroots\

sweet - thanks.

ward
  • 37
  • 1
  • 1
    it doesn't work. I have it in DFS as Folder1 and path \\MY-SERVER\Shared Folders\Folder1 but when I try to map it on my client PC I get system error 1232 – McVitas Mar 19 '22 at 21:21
1

You can use the mklink command to map the Network drive to a local folder

baraka
  • 807
  • 8
  • 16
0

I don't think it's possible to share through a network drive on a windows machine. Even if it would be, the performance would probably be terrible.

Is it not possible for the backup solution on the client to just use the samba share directly? It should not behave differently from a share on a Windows machine.

jelmer
  • 2,405
  • 14
  • 27
0

I haven't done it, but port forwarding the samba ports might work.