当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 为什么我的 /etc/samba/smbpassword 文件是空的呢?
帖子发表于 : 2016-02-15 15:56 

注册: 2010-12-26 4:11
帖子: 36
送出感谢: 0 次
接收感谢: 0 次
创建Samba用户的时候系统不给自动创建么?


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?
帖子发表于 : 2016-02-15 16:39 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
/etc/samba/smb.conf 中可选择存储密码方式
设置为 passdb backend = smbpasswd 时才会使用 /etc/samba/smbpasswd。
我这里默认为 passdb backend = tdbsam,密码存储在 /var/lib/samba/private/passdb.tdb

man smb.conf 写道:
passdb backend (G)

This option allows the administrator to chose which backend will be
used for storing user and possibly group information. This allows you
to swap between different storage mechanisms without recompile.

The parameter value is divided into two parts, the backend's name, and
a 'location' string that has meaning only to that particular backed.
These are separated by a : character.

Available backends can include:

· smbpasswd - The old plaintext passdb backend. Some Samba features
will not work if this passdb backend is used. Takes a path to the
smbpasswd file as an optional argument.


· tdbsam - The TDB based password storage backend. Takes a path to
the TDB as an optional argument (defaults to passdb.tdb in the
private dir directory.

· ldapsam - The LDAP based passdb backend. Takes an LDAP URL as an
optional argument (defaults to ldap://localhost)

LDAP connections should be secured where possible. This may be done
using either Start-TLS (see ldap ssl) or by specifying ldaps:// in
the URL argument.

Multiple servers may also be specified in double-quotes. Whether
multiple servers are supported or not and the exact syntax depends
on the LDAP library you use.


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?
帖子发表于 : 2016-02-15 21:18 

注册: 2010-12-26 4:11
帖子: 36
送出感谢: 0 次
接收感谢: 0 次
谢谢.......


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?
帖子发表于 : 2016-02-15 21:19 

注册: 2010-12-26 4:11
帖子: 36
送出感谢: 0 次
接收感谢: 0 次
谢谢.......


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?
帖子发表于 : 2016-02-15 21:19 

注册: 2010-12-26 4:11
帖子: 36
送出感谢: 0 次
接收感谢: 0 次
谢谢................................


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Yahoo [Bot] 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译