samba

Platform independent file locking?

风流意气都作罢 提交于 2019-12-09 12:11:41
问题 I'm running a very computationally intensive scientific job that spits out results every now and then. The job is basically to just simulate the same thing a whole bunch of times, so it's divided among several computers, which use different OSes. I'd like to direct the output from all these instances to the same file, since all the computers can see the same filesystem via NFS/Samba. Here are the constraints: Must allow safe concurrent appends. Must block if some other instance on another

Git over samba cannot fetch/add/commit anymore

两盒软妹~` 提交于 2019-12-09 03:23:56
问题 I have used git trough samba for several times without any issue. In the last days however, it seems impossible to git all/fetch/commit The error is : error: insufficient permission for adding an object to repository database .git/objects Using strace I can see that error is due to a call on open: [pid 31303] open(".git/objects/b7/tmp_obj_6wi717", O_RDWR|O_CREAT|O_EXCL, 0444) = -1 EACCES (Permission denied) [pid 31303] write(2, "error: insufficient permission f"..., 88error: insufficient

window下上传文件至linux(windows下如何访问linux)

╄→гoц情女王★ 提交于 2019-12-08 19:51:23
========相信我,按照步骤来一定能成功====== 我将从三个方面来说明: 为什么要搭建访问服务器 、 如何搭建访问服务器 、 windows如下访问 为什么要搭建访问Linux服务器 我们都知道,服务器性能最稳定的是Linux或Unix,然而相对比与wins的OS,Linux大多是以命令行操作,不具备图形界面。搭建访问Linux的一个重要应用场景是:你可以在任何时候,任何windows下对服务器内容进行实时更新。 访问Linux服务器,类似于通信过程,需要进行文件传输。有许多文件传输协议,在这里,我选用SMB协议。 Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成。SMB(Server Messages Block,信息服务块)是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务。SMB协议是客户机/服务器型协议,客户机通过该协议可以访问服务器上的共享文件系统、打印机及其他资源。通过设置“NetBIOS over TCP/IP”使得Samba不但能与局域网络主机分享资源,还能与全世界的电脑分享资源。 2. 如何搭建访问Linux服务器 这里我将从 打开终端开始 ,讲述一步步的步骤) (1)首先需要在linux下安装samba软件 1) 打开终端,输入以下命令(完成

Example of pysmb

北城余情 提交于 2019-12-08 17:21:04
问题 Could you give me an example of using pysmb library to connect to some samba server? I've read there's class smb.SMBConnection.SMBConnection(username, password, my_name, remote_name, domain='', use_ntlm_v2=True) but i can't figure out how to use it 回答1: I have been using pysmb for network shares enumeration lately, and found that it is not so easy to find good / complete examples. I'd refer you to a small script that I wrote for enumerating smb shares with pysmb: https://github.com/n3if

centos7.3安装与配置SVN

让人想犯罪 __ 提交于 2019-12-08 13:08:12
转自:http://blog.csdn.net/allyli0022/article/details/73741269 参考:http://www.centoscn.com/image-text/config/2016/0429/7146.html http://blog.csdn.net/u012486840/article/details/52524389 1、yum命令即可方便的完成安装 $ sudo yum install subversion 测试 安装是否成功: $ svnserve --version 2. 建立版本库 创建svn数据目录(subversion默认是把/var/svn作为数据根目录的,开机启动默认也是从这里): $ sudo mkdir -p / var /svn 创建版本库: $ sudo svnadmin create / var /svn/wangwa 如果删除版本库: $ sudo rm -rf / var /svn/somnus 3. 配置svn配置文件 每个版本库创建之后都会生成svnserve.conf主要配置文件。编辑它: $ sudo vim / var /svn/somnus/conf/svnserve.conf 编辑示例: [general] anon-access = none #控制非鉴权用户访问版本库的权限 auth

centos7.3安装与配置SVN

浪子不回头ぞ 提交于 2019-12-08 12:52:36
参考:http://www.centoscn.com/image-text/config/2016/0429/7146.html http://blog.csdn.net/u012486840/article/details/52524389 1、yum命令即可方便的完成安装 $ sudo yum install subversion 测试 安装是否成功: $ svnserve --version 2. 建立版本库 创建svn数据目录(subversion默认是把/var/svn作为数据根目录的,开机启动默认也是从这里): $ sudo mkdir -p / var /svn 创建版本库: $ sudo svnadmin create / var /svn/wangwa 如果删除版本库: $ sudo rm -rf / var /svn/somnus 3. 配置svn配置文件 每个版本库创建之后都会生成svnserve.conf主要配置文件。编辑它: $ sudo vim / var /svn/somnus/conf/svnserve.conf 编辑示例: [general] anon-access = none #控制非鉴权用户访问版本库的权限 auth-access = write #控制鉴权用户访问版本库的权限 password-db = passwd #指定用户名口令文件名

R - write() a file to a SAMBA share

笑着哭i 提交于 2019-12-08 12:41:33
I have a file loaded in R that I want to move to a samba share It is something like write(some-file, file = "|smbclient -U user //ip password") It connects to the samba but then (I think) the output is "executed" in the smb: \> and I don't want the file to be executed, I don't know how to pass the file to the destination with a put function inside smbclient. Edit: This is not the same problem as the first post. The first post is solved and answered by me. The point there was connecting to samba. Now I'm already connected to it but the write() function doesn't make a file, instead it pipes out

How are printer notifications in Windows supposed to work with network printers?

主宰稳场 提交于 2019-12-08 04:24:14
问题 I have an application which needs to print files of different types using their associated applications for printing using ShellExecute and the "print" verb. My application needs to (hopefully) reliably know when one print job is completely processed and it can issue the next one. I accomplish this using FindNextPrinterChangeNotification and everything seems to work fine using local printers, e.g. installed via USB, but I get a completely different behavior if network printers are involved.

how to get the user's domain information in samba

ぃ、小莉子 提交于 2019-12-08 01:26:44
问题 BG:I have build samba in redhat linux, and share a folder, then access the share folder from windows. As the following shows, the connection information can be got via command "smbstatus" [root@Redhat6 pam.d]# smbstatus Samba version 3.5.10-125.el6 PID Username Group Machine ------------------------------------------------------------------- 8303 leon domain users win0832mc (::ffff:10.204.176.73) we can get the user, the group of domain, then how to get the domain information? Could please

How do you track files in SMB with an application?

旧巷老猫 提交于 2019-12-07 23:15:33
问题 I have built an application with PHP which shows all the files in the home directory of a user this directory is also available via samba so you can access it from the native explorer in windows, mac and linux. I wanted to give every file an ID so that I can asign tags to every file how would you go about doing this? Would you make hashs of the file and look whether its the same filehash and would thus conclude that its the same file? Can I trigger samba to send out something everytime a file