解决samba没有smbpasswd文件

  现象:安装好CentOS5 , 配置好smb.conf,结果在/etc/samba/下找不到smbpasswd文件。 
  
原因:samba启用了tdbsam验证。 
  
解决:SMB.conf文件中注释掉 passdb backend = tdbsam 一行, 
     加上 smb passwd file = /etec/samba/smbpasswd   
  
     这样再建立用户就产生了smbpasswd文件了。

听闻有多朋友在配置好SMB后,都在/etc/samba 目录下看到 smbpasswd 文件,特贴此帖以作参考,希望对大家有帮助

关于TDBSAM

Samba can store user and machine account data in a “TDB” (trivial database). Using this backend does not require any additional configuration. This backend is recommended for new installations that do not require LDAP. 

As a general guide, the Samba Team does not recommend using the tdbsam backend for sites that have 250 or more users. Additionally, tdbsam is not capable of scaling for use in sites that require PDB/BDC implementations that require replication of the account database. Clearly, for reason of scalability, the use of ldapsam should be encouraged. 

The recommendation of a 250-user limit is purely based on the notion that this would generally involve a site that has routed networks, possibly spread across more than one physical location. The Samba Team has not at this time established the performance-based scalability limits of the tdbsam architecture. 

There are sites that have thousands of users and yet require only one server. One site recently reported having 4,500 user accounts on one UNIX system and reported excellent performance with the tdbsam passdb backend. The limitation of where the tdbsam passdb backend can be used is not one pertaining to a limitation in the TDB storage system, it is based only on the need for a reliable distribution mechanism for the SambaSAMAccount backend.

你可能感兴趣的:(安装,samba)