Server Message Block, network-protocol for sharing files and printers implemented by Windows, Samba and others
Questions tagged [smb]
896 questions
8
votes
2 answers
Using SMB protocol in URL while using JCIFS library on Android
I'm using JCIFS in my new Android project. Somehow I've decided to use URL class to generalized the file path (so I can add more protocol later). What I did is as below
URL url = new URL("smb://192.168.1.1/filepath");
And then…

mr_tawan
- 666
- 1
- 5
- 8
7
votes
1 answer
Secure way to mount CIFS/SMB share from container without privileged flag or SYS_ADMIN capability
I would like to access a Windows file share share (SMB3) from a docker container, but I do not want to compromise the security of the host machine. All the guides I have read state that I need to use either the --privileged flag or --cap-add…

ben
- 321
- 4
- 12
7
votes
2 answers
SMB/CIFS volume in Docker-compose on Windows
I have a NAS with a shared CIFS/SMB share that I would like to mount as a volume using docker-compose on Windows.
I have read through multiple suggestions (for instance using plugins, mounting it in Windows to give it a drive letter) without finding…

orderlyfashion
- 531
- 1
- 4
- 14
7
votes
2 answers
Is there a way to enumerate files by creation time on an SMB share?
I'm looking for a way to retrieve files newer than a certain date/time on an SMB remote share, all working under Windows. I've been using DirectoryInfo.EnumerateFiles(), and filtering as they are returned. Unfortunately, this means every file…

Eclipse
- 44,851
- 20
- 112
- 171
7
votes
2 answers
How to get shared folders working with Vagrant and Hyper-V?
After:
Enabling Microsoft Hyper-V, as explained here:
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
Temporarily disabling my Anti-Virus software (Avast)
Starting my command line program in Admin…

kvjava1
- 433
- 4
- 13
7
votes
2 answers
SMB share mappings created with New-SmbGlobalMapping for docker containers not restored after reboot on windows server 1803
I am trying to create a simple Docker host to try using containers for some .net projects.
I have setup a Windows Server 1803 host and installed Docker EE with powershell and it is running as a service correctly.
I wanted to use the new "SMB Global…

francesco paolo schiavone
- 363
- 1
- 3
- 12
7
votes
2 answers
Open Java SMB server implementation
Is there an open implementation of a SMB/CIFS server in Java? The only implementation I can find at all is Alfresco's but it isn't open source.
A related question: assuming there is no such implementation, I'm surprised there isn't a library…

monorailkitty
- 492
- 4
- 9
7
votes
5 answers
Convert SmbFile to Java IO File
My Java application requires access to a large excel file (1GB+ in size) saved on remote shared folder. I'm using SmbFile to get the file with authentication.
Note: Downloading of the file is not an option mainly for size reasons.
The problem is…

arash moeen
- 4,533
- 9
- 40
- 85
7
votes
2 answers
HTML link to directory in a Samba share, that works on Internet Explorer 7/8
I want my HTML page to link to a directory in a Samba share (protocol SMB/CIFS Windows share).
In my HREF I wrote file://server/Share2/folder3
Most browsers handle it fine (mount the share and open a file manager on folder3) except Internet Explorer…

Nicolas Raoul
- 58,567
- 58
- 222
- 373
7
votes
5 answers
How to copy file from smb share to local drive using jcifs in Java?
Could anybody help me to copy file from shared folder to local drive? My code is:
import jcifs.smb.NtlmPasswordAuthentication;
import jcifs.smb.SmbFile;
import jcifs.smb.SmbFileInputStream;
import jcifs.smb.SmbFileOutputStream;;
public class smb…

May12
- 2,420
- 12
- 63
- 99
7
votes
1 answer
How do I rival the speed of xcopy?
Is there an open-source project or best-practices guide shows the fastest way to copy files around a local machine, lan, san, and wan, that can rival the speed of the built-in xcopy of windows7 (or 8) or windows explorer copy?
To be blunt, not all…

Ben L
- 1,449
- 1
- 16
- 32
6
votes
2 answers
How to access C$ share in a network?
Considering I have admin access to a machine, can I remotely access the default C$ share in Windows XP and Windows 7?

jyz
- 6,011
- 3
- 29
- 37
6
votes
0 answers
Open a Micrsoft DFS share in golang using smb2
I have a dfs share on Windows server 2012. I can open the share and read files from another system in a windows file explorer with a path like: \\dfsserver\usernamepace\Tom\go.png. However, using golang's smb2 package by…

Hussain
- 436
- 3
- 8
6
votes
1 answer
Java Mock server framework for Samba
I am trying to write some tests for a Samba client in Java, and need to find a framework that would create a mock Samba server. Something similar to the Mock FTP Server for the FTP protocol.
So far I could find only services that would mock a Samba…

Fleur
- 666
- 1
- 8
- 29
6
votes
4 answers
solution for smb protocol vulnerability
The problem is not programming.
I'm using an old machine, and microsoft stopped patches for those machines.
Does any one have a solution for the SMB protocol vulnerability that use port 445, which is known for attackers ?
Any tricky solution ?
In…

Hassan MK
- 61
- 1