smb

Using Jackcess with JCIFS to manipulate an Access database on an SMB share

时光怂恿深爱的人放手 提交于 2020-01-02 12:10:12
问题 I need to work with an MS Access file in Java using Jackcess. The file is located on an SMB share so I assume I would have to use JCIFS. I tried this String testdirectory = "smb://" + "file location"; SmbFile testsmbdir = null; try{ testsmbdir = new SmbFile(testdirectory,auth); }catch(Exception e){ e.printStackTrace(); } SmbFileInputStream smbFilestream = new SmbFileInputStream(testsmbdir); db = DatabaseBuilder.open(testsmbdir); However, it says SMBFile can not be converted to File for the db

Exit codes of smbclient

狂风中的少年 提交于 2020-01-02 04:48:07
问题 i've a problem with the commandline command "smbclient" of samba on arm. I wrote a script to download files from a Windows Share. Here the smb-part of this script. smbclient //CNAME/SNAME -I0.0.0.0 -N -c "case_sensitive; cd folder; prompt; mget file" echo $? My problem ar the exit codes. If the file is downloaded completely, the exit code is 0 (OK) If the file cannot be downloaded, the exit code is 1 (OK) If the testmaschine loses the connection to the share due downloading a file, the exit

How to reliably and quickly develop against a remote server with a local IDE?

给你一囗甜甜゛ 提交于 2019-12-24 15:15:43
问题 Folks, My devs and I are running into an issue that I can't seem to solve. It seems like such a common problem that I'm amazed I haven't seen a 'good solution' ... but I haven't. Remote server contains our PHP in a git repo. Devs want to be able to make an edit and test it without having to commit/push/pull, etc. Makes a lot of sense, especially for the JS/HTML guy. One dev just ssh's in and uses vi. Another wishes to use Zend Studio/Eclipse -- great, it has an ability for using a remote

Understanding smb and DCERPC for remote command execution capabilities

无人久伴 提交于 2019-12-24 09:10:19
问题 I'm trying to understand all the methods available to execute remote commands on Windows through the impacket scripts: https://www.coresecurity.com/corelabs-research/open-source-tools/impacket https://github.com/CoreSecurity/impacket I understand the high level explanation of psexec.py and smbexec.py, how they create a service on the remote end and run commands through cmd.exe -c but I can't understand how can you create a service on a remote windows host through SMB. Wasn't smb supposed to

Access a network share from an asp.net app. Works in Visual Studio but not in IIS, why?

£可爱£侵袭症+ 提交于 2019-12-24 07:46:20
问题 I have a network share in the intranet that allows write access to everyone (guest) So, i wrote a program (mojoportal module, anyway it's the same, i think) in c# that writes some files in that path, and in visual studio works great. Now, using the same program in IIS 7.5, does not work, i get this exception: System.Net.WebException: An exception occurred during a WebClient request. ---> System.IO.IOException - Logon failure: unknown user name or bad password. Well... since the access on the

vfs2 and samba(smb) version 2

偶尔善良 提交于 2019-12-24 07:34:48
问题 we disabled smbv1 in our windows machine and now we can't connect using smb2 we are using commons-vfs2(2.0) and commons-vfs2-sandbox(2.0) here is my code: @Test public void testConnection() throws FileSystemException { String folder = "\\\\10.0.0.0\\smb"; folder = folder.replaceAll("\\\\", "/"); StringBuilder builder = new StringBuilder(128).append(Protocol.CIFS.getProtocolPrefix()).append(':') .append(folder); String fileURI = builder.toString(); System.out.println(fileURI);

vfs2 and samba(smb) version 2

浪尽此生 提交于 2019-12-24 07:34:25
问题 we disabled smbv1 in our windows machine and now we can't connect using smb2 we are using commons-vfs2(2.0) and commons-vfs2-sandbox(2.0) here is my code: @Test public void testConnection() throws FileSystemException { String folder = "\\\\10.0.0.0\\smb"; folder = folder.replaceAll("\\\\", "/"); StringBuilder builder = new StringBuilder(128).append(Protocol.CIFS.getProtocolPrefix()).append(':') .append(folder); String fileURI = builder.toString(); System.out.println(fileURI);

Using Windows SMB shares from Kubernetes deployment app

大城市里の小女人 提交于 2019-12-23 10:28:16
问题 We are migrating legacy java and .net applications from on-premises VMs to an on-premises Kubernetes cluster. Many of these applications make use of windows file shares to transfer files from and to other existing systems. Deploying to Kubernetes has less priority than re-engineering all the solutions to avoid using samba shares, so if we want to migrate we will have to find a way of keeping many things as they are. We have setup a 3-node cluster on 3 centos 7 machines using Kubeadm and Canal

Using Windows SMB shares from Kubernetes deployment app

陌路散爱 提交于 2019-12-23 10:27:46
问题 We are migrating legacy java and .net applications from on-premises VMs to an on-premises Kubernetes cluster. Many of these applications make use of windows file shares to transfer files from and to other existing systems. Deploying to Kubernetes has less priority than re-engineering all the solutions to avoid using samba shares, so if we want to migrate we will have to find a way of keeping many things as they are. We have setup a 3-node cluster on 3 centos 7 machines using Kubeadm and Canal

SMB protocol for copying files between remote shares

强颜欢笑 提交于 2019-12-23 01:44:10
问题 I need to copy a lot of data from remote share \s1 to share \s2. I'm using robocopy, which uses SMB protocol to copy files. My question -- does the protocol allow to copy data from S1 to S2 directly or all data has to go through the machine on which robocopy is running? 回答1: It uses the machine that it's running on. It copies the data from source in memory (on the current machine - current ) and from there to target . There's no other way (well there could be a client/server running on source