使samba服务器对大小写不敏感

在配置文件smb.conf中使用

short preserve case = yes

preserve case = yes
 
 
 
在Linux修改用户密码的时候也要修改smbpasswd对应用户的密码:
(我是在使用LFS的时候存在这个密码同步的问题,不知道别的发行版是否存在这个问题)
# for samba passwd sync
password    sufficient     pam_smbpass.so   audit use_first_pass
将这行加入到/etc/pam.d/passwd这个文件中即可,以后执行passwd也就会修改这个用户对应的SMB的用户密码了。

日志错误
当出现这个错误提示
getpeername failed. Error was Transport endpoint is not connected

smb.conf里添加
smb ports=139
重启smb
 
源码安装samba时记得configure --help 一下
如果直接configure make make install 后会和rpm安装的功能有很多差异。
最好先./configure --help一下看看
比如要让samba支持ACL就得添加上 --with-acl-support
 
 
回收站功能
[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
   writable = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

vfs object = recycle                     
   #启用回收站功能
recycle:keeptree = yes                  
  #保持目录的树状结构
recycle:versions = yes                  
  #相同文档名时,有不同版本
recycle:repository = ../recycle/%u
  #回收站的位置,每个用户都有一个目录
recycle:exclude=*.tmp,*.TMP         
  #设置不被移动到回收站的文件类型

recycle
目录的访问权限是所有用户可写,自动生成的recycle/%u目录的访问权限是只能由用户可写。