Server Message Block, network-protocol for sharing files and printers implemented by Windows, Samba and others
Questions tagged [smb]
896 questions
4
votes
1 answer
How to mount SMB share from terminal using keychain?
I need to be able mount SAMBA (SMB sharing) from terminal, for MAC OS versions (10.7). Is there a way to use mount_smbfs with keychain so I don't get prompt the username/password or have to add it to the command? I'm quite new to this so any help…

user1302315
- 41
- 2
4
votes
2 answers
php to access shared smb folder (user/password protected)
WAMP server
PHP fopen function needs to open file in shared folder //server/folder1/file1.txt
php has SYSTEM user permisions, but shared folder is visible only for userX/password
how can i open this remote file inside php script?

Jiří Doubravský
- 248
- 1
- 4
- 14
4
votes
5 answers
Python Linux-copy files to windows shared drive (samba)
this question is similar to How to copy files to network path or drive using Python
However, I am on Linux and trying to copy files to a windows shared network accessed through samba.
I tried the code:
from contextlib import…

Harmaini
- 41
- 1
- 1
- 3
4
votes
3 answers
How to PHP copy across SMB mount
I have a simple script which copies a file from one SMB mount to another. The source file system is the same, but the web server is different. I'm using PHP to process the file by copying it to a temp directory, then performing additional tasks on…

Allan Bogh
- 605
- 8
- 15
4
votes
0 answers
Mounting cifs share using kerberos fails with 'Operation not supported'
I'm trying to mount a network share using cifs and kerberos on a CentOS 8 distro. I am able to mount the share correctly using my explicit credentials, but passing the option of sec=krb5 doesn't work. The response from the operation says: 'mount…

Orion Hansen
- 41
- 4
4
votes
0 answers
Writing extended file attributes works over SMB but not locally
I have a node program that writes extended attributes to files (fs-xattr). This works from a remote machine connected over SMB but if I try to run the command on the machine itself it says extended attributes are not enabled.
How is SMB able to do…

styks
- 3,193
- 1
- 23
- 36
4
votes
1 answer
Close-SMBOpenFile throws error and isn't caught in try-catch
We are using a TeamCity powershell in script execution mode as part of a pipeline with snapshot and artifact dependencies. We have a fairly robust system and have been using this particular process for a couple years, so this isn't brand new code…

jcolebrand
- 15,889
- 12
- 75
- 121
4
votes
1 answer
Mount smb share temprorarily with Ansible using module instead of shell
I need to mount a smb share to have access on large, shared installation files in Ansible. This works using CLI:
- name: Mount share
become: yes
shell: "mount.cifs {{ smb_share.path }} {{ smb_share.mount_point }} -o user={{ smb_share.user…

Lion
- 16,606
- 23
- 86
- 148
4
votes
2 answers
Copy file using last smb jcifs-ng jar
Trying to move from jcifs to jcifs-ng (the latest jar jcifs-ng-2.1.2.jar) to copy files to/from remote.
My code using old jcifs:
System.setProperty("jcifs.smb.client.responseTimeout", "10000");
…

Lubov Shilin
- 133
- 2
- 10
4
votes
2 answers
Docker vs. Shared windows folders
I'm trying to access a remotely shared folder from within a docker container on Docker for Windows.
While inside the container running dir \\target\share produces "The network path was not found.". The target can be pinged from inside the container…

Dawnkeeper
- 2,844
- 1
- 25
- 41
4
votes
1 answer
What are advantage of Isilon OneFS File System Access Api over accessing the file system using SMB or NFS?
I want to create some utility that read/write the files with permission (ACL) from/to Isilon server. This utility will access the server either on LAN or VPN. Here my main concern is to achieve performance too for file/folder enumeration and copy…

Romil Kumar Jain
- 20,239
- 9
- 63
- 92
4
votes
1 answer
Error while setting up a new smb share using powershell
I'm working on writing a PowerShell script that will setup a folder structure on the c drive and then turn those folders into shares.
When using the New-SmbShare cmdlet I'm getting a 1332 or a 50 error.
With the Domain I get a 1332…

zingwing
- 317
- 2
- 3
- 12
4
votes
1 answer
SMB getinputstream application crashes
I am facing the same issue which was faced on link and was not answered properly. I am using code below.
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
try{
String url =…

Hot Cool Stud
- 1,145
- 6
- 25
- 50
4
votes
0 answers
SMB or WebDAV protocol?
I am trying to understand the differences between WebDAV and SMB. What are the advantages and disadvantages of both and is there any rule of thumb when to implement which of the two.

user9051123
- 41
- 1
- 1
- 2
4
votes
1 answer
How to access an AFP or SMB share (e.g. time capsule) in Swift or Obj-C
I am currently developing a tvOS/iPhone app. The goal is to browse my local network and find different devices that publish AFP and SMB shares, and read files from them.
So far I have managed to find and list the different devices in my network…

Ayrton Werck
- 334
- 4
- 15