Questions tagged [smb]

Server Message Block, network-protocol for sharing files and printers implemented by Windows, Samba and others

896 questions
6
votes
2 answers

Mercurial: "hg push" to smb share does not work

I use Ubuntu 16.04 and Mercurial 3.7.3. Our repository is accessible only as an SMB share. I cloned the share to a folder in my home folder (I simplified the names a bit): > hg clone "/run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo"…
kol
  • 27,881
  • 12
  • 83
  • 120
6
votes
1 answer

jcifs.smb.SmbException: The system cannot find the file specified?

While running the below code i am getting the exception jcifs.smb.SmbException: The system cannot find the file specified Code: public void m1(String b) throws IOException { // TODO Auto-generated method**strong text** stub …
Kishore kumar
  • 81
  • 1
  • 6
6
votes
1 answer

Copy files to network path or drive using python on OSX

I have a similar question like the one asked here but I need it to work on OSX. How to copy files to network path or drive using Python So i want to save a file on a SMB network share. Can this be done? Thanks!
Jay
  • 702
  • 7
  • 10
6
votes
1 answer

File transfer hurdles in .net using mono on linux to windows file share

I am writing a .Net application to transfer files between linux and windows. I use mono to achieve platform independence. I used https://code.google.com/p/cifsclient/ as a reference(Thanks Jordi Martin). His awesome solution is similar to what I am…
6
votes
5 answers

Reading file over network slow due to extra reads

I'm reading a file and I either read a row of data (1600 sequential reads of 17 bytes) or a column of data (1600 reads of 17 bytes separated by 1600*17=27,200 bytes). The file is either on a local drive or a remote drive. I do the reads 10 times…
Brad Pepers
  • 61
  • 1
  • 2
6
votes
2 answers

Android - Mount a Samba share in code

I'm looking for a way to mount Samaba shares programatically. I am aware of this question which, if it works, would allow browsing a Samba share within my app, but I want the shares to be available to other apps once mounted. I know ES File…
LairdPleng
  • 948
  • 3
  • 9
  • 28
6
votes
1 answer

smbmount not working on Ubuntu 12.10

I just installed Ubuntu 12.10 and I was trying to mount a folder to the Ubuntu system. So I used: sudo smbmount /path/to/my/folder -ouser=, dom= but the smbmount was not found... All I have now is cifs-utils. The command…
Evan_HZY
  • 984
  • 5
  • 17
  • 34
6
votes
2 answers

How do I use JCIFS with apache VFS to access an SMB URL?

I am trying to access a folder on my local computer using an smb URL. my project is using the jars: commons-vfs2-2.0.jar and jcifs-1.3.17.jar (and all the other required jars). The code in it's entirety is: public static void main(String[] args)…
Michael Omer
  • 71
  • 1
  • 3
5
votes
4 answers

Ruby read Samba share

I'm looking for a way to read from a samba share. I want to use it like the Dir class, for example open and read of directories. Is this possible in Ruby?
mibo
  • 73
  • 1
  • 8
5
votes
3 answers

How to avoid 12 seconds delay when disonnecting from share in Windows 7?

I'm making some utils that uses NetUseAdd and NetUseDel functions to connect/disconnect to share. In Windows 7 I noticed that between calling NetUseDel and real disconnnection passes nearly 12 seconds. I made some investigations and found that net…
kizill
  • 51
  • 2
5
votes
2 answers

How to connect to an SMB share and write to a file in Powershell without mounting?

I've gone through the documentation here. Oddly enough, I can't find anything mentioning how to simply connect to (not mount) an SMB share with PowerShell. I'm looking for the equivalent of this in Python: with smbclient.open_file(args.share,…
Grant Curell
  • 1,321
  • 2
  • 16
  • 32
5
votes
0 answers

Start a SMB container using Docker for Windows

I have a Docker Volume used by several containers (Linux containers running on Windows). I would like to be able to access the Volume from the Windows machine through Windows Explorer, in the best case with a network drive, e.g.: services: smbd: …
Druckles
  • 3,161
  • 2
  • 41
  • 65
5
votes
1 answer

problems using sharpcifs with dotnet core. Connecting to a windows share

I try to connect to a windows share from a other windows machine. after a long search i found sharpcifsstd.dobes.jp but i cant get the examples to work. I receive a SharpCifs.Smb.SmbException: 'Failed to connect, IOException: transport closed in…
Bram
  • 61
  • 2
5
votes
4 answers

Easiest way to implement a SMB redirector for Windows?

I would like to implement a little tool that lets me do on Windows what I can already do easily on any other OS - specify a remote SMB server by both IP address and port. Natively, Windows will not do SMB over any ports other than 445 or 139 (its…
flabdablet
  • 3,565
  • 3
  • 22
  • 15
5
votes
1 answer

symbolic links work when shared to Windows or Linux (smb), but broken when shared to Mac (afp or smb)

On a Mac, I have a shared folder, ~\Documents. There are two subfolders, Data and Data_2011, the former containing folders of files from the last several years, and the latter containing symbolic links to the folders in the Data folder that have…
Sibo Lin
  • 339
  • 1
  • 5
  • 16