1.Issue:Server requested plaintext password but 'client plaintext auth' is disabled 
  session setup failed: SUCCESS - 0 
I tried 'smbclient -s foo.conf //server/dir' where foo.conf has: 
[global] 
      client plaintext auth = yes 
But the results are the same. 
You have to set 'client lanman auth = yes'.  Otherwise, 
'client plaintext auth' is forced off.

2.Issue:Can Samba “security = user” be used for guest share without Windows login prompt?
http://serverfault.com/questions/211128/can-samba-security-user-be-used-for-guest-share-without-windows-login-prompt

3.Samba服务所使用的端口和协议:
* Port 137 (UDP) - NetBIOS name service and nmbd  
* Port 138 (UDP) - NetBIOS datagram service   
* Port 139 (TCP) - File and printer sharing and smbd    
* Port 389 (TCP) - for LDAP (Active Directory Mode)   
* Port 445 (TCP) - NetBIOS was moved to 445 after 2000 and beyond, (CIFS)   
* Port 901 (TCP) - for SWAT

*Samba是一种网络文件共享协议,允许不同操作系统,不同平台的机器之间通过网络实现文件访问控制。
*特别是允许Windows系统访问Unix系统的文件。Samba服务一般开启有两个端口139 TCP 445TCP。

4.配置Samba服务器:
可以参考的有价值的文档有: man samba  / man smbd / man smb.conf
配置文件主要有: /etc/samba/smb.conf  /etc/pam.d/samba
客户端测试工具: Windows 网络邻居查看计算机 / Linux smbclient
配置时查看服务运行状态的日志文件主要有:
*Samba进程日志 /var/log/samba/* (smbd.log / IP.log)
*系统授权日志:/var/log/auth.log
*系统日志:/var/log/syslog

6.smb.conf 的一些重要选项:

[global]
   workgroup = WORKGROUP
   netbios name = Samab-Server
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d

security = share                         #常用的还有 security = user
   guest ok = yes                           
   encrypt passwords = yes       # 密码加密,如果设置成NO,Windows系统访问不能正常(要修改注册表才能正常访问,因为Windows作为客户端访问时,默认加密密码)

client lanman auth = yes    
   client plaintext auth = yes

[pub]
   comment = Users profiles
   path = /ftp/pub
   browseable = yes
有关encrypt passwords = yes: 当设置成yes时PAM 授权控制全部被忽略(因为PAM不能处理加密过的授权控制);设置成NO时,Windows系统默认不能访问,此时CMD下使用 net use Z: //samba-server/pub  出现1240Error。除非修改系统注册表EnablePlantPassword才行。参见参考微软支持网站:
http://support.microsoft.com/kb/224287
http://answers.microsoft.com/en-us/windows/forum/windows_xp-windows_update/kb2536276-windows-xp-pc-get-system-error-58-when/d9dbdde5-2666-4423-b47c-fbdb80b995d9

6.为了兼容Windows系统,设置encrypt passwords = yes 貌似是必须的。但又想使用PAM方式认证用户:
配置:
security = user
encrypt passwords = yes
obey pam restrictions = yes
测试发现可以开启Samba服务的PAM方式认证用户。

7.使用SSH使得远程访问MYSQL更加安全
http://www.j-cn.org/post/754.html
http://ig2net.info/archives/788.html

Samba Server 配置的更多相关文章

  1. CentOS 7 samba server 配置

    samba是linux上的文件共享服务软件,相当与Windows上的共享文件夹,当然也是要在同一网段上的. 当前用的版本是4.4.4,好吧!下面介绍怎么去安装配置它,here we go! 1. 安装 ...

  2. ubuntu samba server 配置多用户访问

    [share] path = /home/share/ writeable = yes browseable = yes create mask = directory mask = guest ok ...

  3. Samba安装配置

    Samba简介 Samba官网:http://www.samba.orgSMB(Server Messages Block,信息服务块)是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不 ...

  4. samba server install

    要求: create vnc service for win7 access it via vnc viewer. 1TB disk for this Centos PC is used as Sam ...

  5. Centos6.5以下Samba服务配置

    一.简介 Samba是一个能让Linux系统应用Microsoft网络通讯协议的软件,而SMB是Server Message Block的缩写,即为服务器消息块 ,SMB主要是作为Microsoft的 ...

  6. Linux之Samba的配置

    Samba的配置   对于linux与windows共享,和平共处,我们可以用Samba软件 Samba是一套免费的开源软件,可以在linux或其他类unix操作系统上实现windows域控制器,文件 ...

  7. 《samba服务配置的文本》

    创建简单的samba服务器 samba  很少用于互联网 /大部分用于局域网  网页更新/ 首先看下你是否安装后了samba. rpm -qa | grep samba samba的简介 1)samb ...

  8. rsync 文件校验及同步原理及rsync server配置

    参考:http://rsync.samba.org/how-rsync-works.html 我们关注的是其发送与接收校验文件的算法,这里附上原文和我老婆(^_^)的翻译: The Sender Th ...

  9. Linux下Samba的配置

    前言: 为了实现windows 和 Linux以及其它操作系统之间的资源共享,软件商推出nfs 和samba两种解决方案.因为市场上缺乏象pc-nfs那样的client工具,使得Linux和windo ...

随机推荐

  1. js 优化

    一.for循环的优化 <!doctype html> <html lang="en"> <head> <meta charset=&quo ...

  2. 常用 sql

    一. sql 多个字段拼接 mysql:     1. concat函数  如果连接串中存在NULL,则返回结果为NULL:        例如: select concat('1','2','3') ...

  3. Linux常用命令02

    显示当前目录 pwd         (print working directory)   显示当前目录 创建目录 mkdir       (make directory) 创建目录(注意不是创建文 ...

  4. 在SSIS中的不同组件间使用局部临时表

    Connetion的属性RetainSameConnection是个boolean值,指定是否保持相同的链接,默认值是false,表示每个component都会单独的使用connection,在com ...

  5. java JFileChooser选择文件和保存文件

    //文件过滤器import java.io.File; import javax.swing.filechooser.FileFilter; public class MyFilter extends ...

  6. 【目录】开源Math.NET基础数学类库使用总目录

    本博客所有文章分类的总目录链接:[总目录]本博客博文总目录-实时更新  1.开源Math.NET数学组件文章   1.开源Math.NET基础数学类库使用(01)综合介绍   2.开源Math.NET ...

  7. Java多线程系列--“JUC集合”05之 ConcurrentSkipListMap

    概要 本章对Java.util.concurrent包中的ConcurrentSkipListMap类进行详细的介绍.内容包括:ConcurrentSkipListMap介绍ConcurrentSki ...

  8. 你见过吗?9款超炫的复选框(Checkbox)效果

    复选框(Checkbox)在各个浏览器中的效果不一致,因此很多 Web 开发人员会自己重新设计一套界面和使用体验都更佳的复选框功能.下面就给大家分享9款超炫的复选框(Checkbox)效果,纯 CSS ...

  9. SQLServer学习笔记系列10

    一.写在前面的话 生活的路很长,还是要坚持走下去,自己选择的生活,就该让这样的生活放射精彩!我不奢求现在的积累,在将来能够收获多少,至少在以后的日子里回忆起来,我不曾放弃过,我坚持过,我不后悔!最近跟 ...

  10. .NET Core中使用Razor模板引擎

    一.简介 在MVC以外的场景中,我们往往需要完成一些模板引擎生成代码或页面的工作:在以前我们一般常用的有Razor.NVeocity.VTemplate.虽然所有的模板系统都具有一些共同特征,但 Ra ...