smb

Linux时间同步设置 (转)

早过忘川 提交于 2019-12-18 07:18:06
1.首先需了解linux内一任务计划工具crontab crontab可以定时去执行你要做的动作 直接用crontab命令编辑 crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要此参数 crontab -l //列出某个用户cron服务的详细内容 crontab -r //删除某个用户的cron服务 crontab -e //编辑某个用户的cron服务 一般使用crontab -e来编辑一个计划动作,编辑模式同vi编辑器相同 crontab内的基本编辑格式如下 *  *  *  *  *  command 分  时  日  月 周  命令 第1列表示分钟1~59 每分钟用*或者 */1表示 第2列表示小时1~23(0表示0点) 第3列表示日期1~31 第4列表示月份1~12 第5列标识号星期0~6(0表示星期天) 第6列要运行的命令 crontab文件的一些例子: 30 21 * * * /etc/init.d/smb restart 上面的例子表示每晚的21:30重启smb 。 45 4 1,10,22 * * /etc/init.d/smb restart 上面的例子表示每月1、10、22日的4 : 45重启smb 。 10 1 [...] 来源: https://www.cnblogs.com/99f2e/archive/2011

Windows file share: why sometimes newly created files aren't visible for some period of time?

十年热恋 提交于 2019-12-17 15:36:24
问题 We were faced with very strange issue that made us crazy. Sometimes newly created files on our File Share PC were "absent" for some period of time. To reproduce a problem you should have at least two computers, call them alpha and beta . Create file share on beta PC ( \\beta\share\bug ) and run this PowerShell script from alpha PC: param( $sharePath="\\beta\share\bug" ) $sharePC = ($sharePath -split '\\')[2] $session = New-PSSession -ComputerName $sharePC $counter = 0 while ($true) {

linux搭建smb、挂载smb、Windows共享

淺唱寂寞╮ 提交于 2019-12-17 05:27:59
实现Linux系统之间共享文件资源以及在Linux系统与Windows系统之间共享文件 Samba软件包的构成 服务端:samba 客户端:samba-client 公共组件:samba-common Smbd:负责为客户机提供服务器中共享资源(目录和文件)的访问,监听139端口(smb协议),445端口(cifs协议) Nmbd:负责提供基于netblos协议的主机名称解析,以便为windows网络中的主机进行查询服务,监听137-138端口(netblos协议) Samba服务的程序组件 主配置文件路径 /etc/samba/smb.conf 配置文件参数解释 [global] #全局参数。 workgroup = MYGROUP #工作组名称 server string = Samba Server Version %v #服务器介绍信息,参数%v为显示 SMB版本号 log file = /var/log/samba/log.%m #定义日志文件的存放位置与名称, 参数%m为来访的主机名 max log size = 50 #定义日志文件的最大容量为50KB security = user #安全验证的方式,总共有4种 #share:来访主机无需验证口令;比较方便,但安全性很差,7.0以上系统不支持share, 使用user模式,map to guest=bad

access to file using Java with Samba JCIFS

可紊 提交于 2019-12-17 04:55:13
问题 I have a question about accessing file with Samba JCIFS. So there is a server I want to access, let's call it server.unv.edu and the workgroup is WKGRP. there is a share in this server: \\server.unv.edu\pcb$ the way I am trying to access to the server is : public class SMBAuthenticator extends NtlmAuthenticator{ private String username = "username"; private String password = "password"; private String domain = "smb://server.unv.edu/WKGRP/"; public SMBAuthenticator(){ NtlmAuthenticator

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

不打扰是莪最后的温柔 提交于 2019-12-13 09:47:31
问题 I had the same problem: How do I use JCIFS with apache VFS to access an SMB URL? ... after including commons-vfs-sandbox-2.1-SNAPSHOT.jar in the classpath I now get this exception: Exception in thread "main" org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "smb://10.10.18.210/CIFS/123/asd". at org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1522) at org.apache.commons.vfs2.provider.AbstractFileObject.getType

Smb version 2 upgrade issues

情到浓时终转凉″ 提交于 2019-12-11 06:06:41
问题 Before the smb version upgrade the code was working fine after it was upgraded to smb 2 , the code throws exception . I know that we can change in Windows to accept smb 1.0 , but I don't want to do that . I want my code to allow smb 2.0 . So Does JCIFS 1.3.15 support SMB verion 2?If it doesn't support what is the best alternate for that. 回答1: jCIFS supports NT LAN Manager 0.12 (NT LM 0.12). NT LM 0.12 is now called "SMB1", though the accuracy of that designation could be debated. NT LM 0.12

React Native - connect to PostgreSQL database

微笑、不失礼 提交于 2019-12-10 20:49:14
问题 I would like to connect with React Native to an external database, like PostgreSQL, MySQL or what ever. Is this possible? But first let me tell you something about my plan: I will develop my application for multiple installations (multiple devices - one installation on one device). All devices are connected with a local network which is provided by a Windows installation (server). On the server runs a database (PostgreSQL) and I would like to connect to this database with all my devices. The

企业网盘的映射盘、同步盘、虚拟盘 都是些什么?

六眼飞鱼酱① 提交于 2019-12-10 17:20:10
企业网盘有很多概念和功能让用户混淆,特别是映射盘、同步盘、虚拟盘。不少用户分不清其中的差异和使用方法,所以也造成无法判断。所以今天就来谈谈这三者的差异,并且也帮助用户做一个鉴别。 先说映射盘,现在很多企业网盘宣称有映射盘,但其实大部分都是伪映射盘,虽然看上去可能差别不大,都是一个磁盘的样子,可是使用起来差别很大。使用为满足概念做的伪映射盘,不仅会有安全漏洞,还从侧面说明网盘服务商的技术实力和文件在服务器上的结构,因为某些文件结构相当于做了个资源管理器,还不如直接用个nas,当企业网盘来卖就是欺骗消费者了。 真正的网盘映射盘 映射盘的好处是不占用本地存储空间(仅仅缓存需要空间),用户可以像操作本地磁盘驱动器一样的使用这个盘。 真正的网盘映射盘有几个典型,譬如微软的onedriver、苹果的iCloud、google drive。它们的特点是,映射盘通过后台的应用程序连接存储服务接口。说白了就是映射盘的内容及里面的文件是可控的。映射盘中的文件权限可以和网盘中的设定完全一致,同时可以自定义列表栏,显示的项目,映射盘的右键菜单内容,可以说这类映射盘是一个做成映射盘样子的独立应用程序。并且,由于这类映射盘是通过客户端控制的,所以支持高级的存储结构,譬如对象存储、分布式存储,也支持秒传、增量上传。这在文件使用和安全上是很重要的。不用这种方式的映射盘可以说整个网盘数据底层结构都有问题。 如何分辨

How to PHP copy across SMB mount

给你一囗甜甜゛ 提交于 2019-12-10 15:26:32
问题 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 it. This setup was working at one point in time but it seems that it's no longer working correctly. Can someone point me in the right direction? fstab mounts : //192.168.0.x/share /media/folder smbfs username=user,password=mypass //192.168.0.x

Mounting Azure File Storage in Docker container via Kubernetes

筅森魡賤 提交于 2019-12-10 10:43:11
问题 I am attempting to mount my Azure File Storage to a container using the method found here: https://github.com/kubernetes/kubernetes/tree/master/examples/volumes/azure_file Upon pod creation I am getting the error: "Output: mount error: could not resolve address for [encoded name of my file storage].file.core.windows.net: Unknown error" I have confirmed that my File Storage resource and the VM hosting the pod are in the same Azure location (East US). I am able to mount this share manually on