为什么我的 /etc/samba/smbpassword 文件是空的呢?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
Smoke1988
帖子: 36
注册时间: 2010-12-26 4:11

为什么我的 /etc/samba/smbpassword 文件是空的呢?

#1

帖子 Smoke1988 » 2016-02-15 15:56

创建Samba用户的时候系统不给自动创建么?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?

#2

帖子 vickycq » 2016-02-15 16:39

/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 用户
Smoke1988
帖子: 36
注册时间: 2010-12-26 4:11

Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?

#3

帖子 Smoke1988 » 2016-02-15 21:18

谢谢.......
Smoke1988
帖子: 36
注册时间: 2010-12-26 4:11

Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?

#4

帖子 Smoke1988 » 2016-02-15 21:19

谢谢.......
Smoke1988
帖子: 36
注册时间: 2010-12-26 4:11

Re: 为什么我的 /etc/samba/smbpassword 文件是空的呢?

#5

帖子 Smoke1988 » 2016-02-15 21:19

谢谢................................
回复