samba

window 和 linux 共享文件夹

杀马特。学长 韩版系。学妹 提交于 2019-12-07 16:44:31
个人习惯写代码使用win,运行环境使用linux,通常使用 linux 挂载win 的共享目录,像这样: mount -t cifs //192.168.36.1/www /mnt/www -o username=administrator,password=root,rw,dir_mode=0777,file_mode=0777 还有一种方式是 linux 运行samb 服务器,win 下可以使用 \192.168.36.1 方式访问: apt install samba smbd samba 配置 https://blog.csdn.net/weed_hz/article/details/21936345 来源: oschina 链接: https://my.oschina.net/u/2502289/blog/1838338

服务器配置总结

别等时光非礼了梦想. 提交于 2019-12-07 12:52:54
服务器的配置总结 服务器 配置是指根据 企业 的实际需求针对安装有 服务器操作系统 的设备进行 软件 或者 硬件 的相应设置、操作,从而实现企业的业务活动需求,分为WEB服务器,FTP服务器、SAMBA服务器、DNS服务器。Web服务器是指驻留于因特网上某种类型计算机的程序。 FTP服务器 1.选择“开始”→“控制面板”→“ 添加或删除程序 ” →“添加/删除Windows组件”,选取“应用程序服务器”后,单击“详细信息”按钮。 2.选择“Internet信息服务(IIS)”后,单击“详细信息”按钮。 选择对话框中的“ 文件传输协议 (FTP)服务后,单击“确定”按钮回到前一画面。然后依次单击“确定”按钮和“下一步”按钮直至“完成”按钮。 3.安装完成后,可以用“IIS管理器”来管理FTP服务器,打开方式为“开始”→“管理工具”→“Internet信息服务(IIS)管理器”。展开“FTP站点”时,可以看到下面有一个“默认FTP站点”。 Samba服务器 1.执行“应用程序”/“系统设置”/“服务器设置”/“Samba”菜单命令,将弹出“Samba服务器配置”对话框 [1] 。 2.在弹出的“ Samba 服务器配置”对话框中执行“首选项”/“服务器设置”命令,将弹出“服务器设置”对话框。在该对话框的“基本”选项卡中设置工具组名称,可与 Windows操作系统 工作组的名称相同

Force a Samba process to close a file

断了今生、忘了曾经 提交于 2019-12-07 10:26:25
问题 Is there a way to force a Samba process to close a given file without killing it? Samba opens a process for each client connection, and sometimes I see it holds open files far longer than needed. Usually i just kill the process, and the (windows) client will reopen it the next time it access the share; but sometimes it's actively reading other file for a long time, and i'd like to just 'kill' one file, and not the whole connection. edit: I've tried the 'net rpc file close ', but doesn't seem

如何把LINUX服务器上的数据发到WINDOWS共享出来的共享盘上

天大地大妈咪最大 提交于 2019-12-07 09:18:51
今天去一用户,系统是通过堡垒机网页方式访问,处理完问题,想把一些信息取下来,不能开启 ssh,FTP,怎么取下来呢 问对方,说有windows网络共享,要不把资料放上去。 怎么办? 突然想到RHCE课上讲了SAMBA,不就是作这个事情的吗。 马上翻来教材,顺带再熟悉一下操作。 先看看服务器共享了什么呢。 使用 smbclient 嗯,没有安装 马上安装。 yum install sambaclient 天,没有配置 YUM 马上配置yum,还好,不能上外网,但本地正好安装iso文件 配置好yum后,再去安装 sambaclient ,cifs-utils smbclient -L //server -U username 嗯,看到了服务器共享出来的共享名字,看来很兴奋。 然后,在本地挂载 mkdir /smb mount -t cifs -o username=ourusername,password=ourpassword //server /smb 怎么挂不上去呢 ,一直报文件类型,挂载选项等错误,难到搞错了, 再一看,发现服务器端没有到最终共享名字,加上后,就好了,最终语法为: mount -t cifs -o username=ourusername,password=ourpassword //server/software /smb 马上把文件传上去。 搞完了,卸载,

通过Samba实现Win/Mac访问Linux

为君一笑 提交于 2019-12-07 03:28:41
1 公开访问 1.1 安装 Samba sudo apt-get install samba sudo apt-get install smbfs 1.2 创建共享目录 sudo mkdir /home/michael/share sudo chmod 777 /home/michael/share 1.3 修改 Samba 配置 sudo vim /etc/samba/smb.conf 找到如下这句: ; security = user 替换为: security = share 在配置文件最后添加: [Ubuntu] path = /home/michael/share public = yes writable = yes 1.4 重启 Samba 服务 sudo /etc/init.d/samba restart 1.6 Win7 通过 Samba 访问 Linux 在我的电脑中选择映射网络驱动器,www.linuxidc.com然后输入: \\172.16.44.175\Ubuntu 1.7 Mac 通过 Samba 访问 Linux 在Finder中选择菜单上的前往,然后连接服务器,然后输入: smb://172.16.44.175 2 用户访问 2.1 访问控制 security = user 2.2 共享目录 comment = Ubuntu path =

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

元气小坏坏 提交于 2019-12-07 02:12:26
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. One of my clients used my application with a network printer, meaning a professional printer with it's

Problems in JCIFS with certain non-ascii characters

与世无争的帅哥 提交于 2019-12-06 19:09:41
问题 I am using JCIFS to access a file share with a lot of Japanese names on it, and I am running into issues when the ・character in it For example: the path 人事部/要員・コスト管理課/ the first part is ok, but the second part causes an issue. This may be related to the fact that “・” can be inputted using a slash, but I’m not sure. I have tried escaping the character but that does not seem to fix the issue. Do you have any clue what might be causing it? 回答1: UPDATE for U+30FB (KATAKANA MIDDLE DOT): As @sergey

如何把LINUX服务器上的数据发到WINDOWS共享出来的共享盘上

邮差的信 提交于 2019-12-06 16:58:41
今天去一用户,系统是通过堡垒机网页方式访问,处理完问题,想把一些信息取下来,不能开启 ssh,FTP,怎么取下来呢 问对方,说有windows网络共享,要不把资料放上去。 怎么办? 突然想到RHCE课上讲了SAMBA,不就是作这个事情的吗。 马上翻来教材,顺带再熟悉一下操作。 先看看服务器共享了什么呢。 使用 smbclient 嗯,没有安装 马上安装。 yum install sambaclient 天,没有配置 YUM 马上配置yum,还好,不能上外网,但本地正好安装iso文件 配置好yum后,再去安装 sambaclient ,cifs-utils smbclient -L //server -U username 嗯,看到了服务器共享出来的共享名字,看来很兴奋。 然后,在本地挂载 mkdir /smb mount -t cifs -o username=ourusername,password=ourpassword //server /smb 怎么挂不上去呢 ,一直报文件类型,挂载选项等错误,难到搞错了, 再一看,发现服务器端没有到最终共享名字,加上后,就好了,最终语法为: mount -t cifs -o username=ourusername,password=ourpassword //server/software /smb 马上把文件传上去。 搞完了,卸载,

linux安装samba

倖福魔咒の 提交于 2019-12-06 16:45:59
今天安装了使用vMware Workstation安装了一个centos 6.5的系统,安装完成之后发现了一个问题,就是没有办法将本机的文件传输到linux机器上面,于是我就想使用samba来传输文件。现在就来在centos6.5上面安装一个samba试试吧。 1.安装samba应用,看到complete!便代表samba安装成功。 yum -y install samba samba-client Loaded plugins: fastestmirror, refresh-packagekit, security Determining fastest mirrors * base: mirrors.cn99.com * extras: mirrors.cn99.com * updates: mirrors.cn99.com ......省略安装的语句 Installed: samba.x86_64 0:3.6.23-51.el6 Updated: samba-client.x86_64 0:3.6.23-51.el6 Dependency Updated: libsmbclient.x86_64 0:3.6.23-51.el6 samba-common.x86_64 0:3.6.23-51.el6 samba-winbind.x86_64 0:3.6.23-51.el6

SAMBA服务

你。 提交于 2019-12-06 13:48:31
SAMBA服务简介 SMB:Server Message Block服务器消息块,IBM发布,最早是DOS网络文件共享协议 Cifs:common internet file system,微软基于SMB发布 SAMBA:1991年Andrew Tridgell,实现windows和UNIX相通 SAMBA的功能: •共享文件和打印,实现在线编辑 •实现登录SAMBA用户的身份认证 •可以进行NetBIOS名称解析 •外围设备共享 计算机网络管理模式: •工作组WORKGROUP:计算机对等关系,帐号信息各自管理 •域DOMAIN:C/S结构,帐号信息集中管理,DC,AD SAMBA介绍 相关包: Samba 提供smb服务 Samba-client 客户端软件 samba-common 通用软件 cifs-utils smb客户端工具 samba-winbind 和AD相关 相关服务进程: smbd 提供smb(cifs)服务 TCP:139,445 nmbd NetBIOS名称解析 UDP:137,138 主配置文件:/etc/samba/smb.conf 帮助参看:man smb.conf 语法检查: testparm [-v] [/etc/samba/smb.conf] 客户端工具:smbclient,mount.cifs   SAMBA服务器配置 smb.conf继承了