- 主题:请问samba要怎么配置才能让系统用户能直接登录
ubuntu 2004,这个应该不重要
之前很多年都是手动smbpasswd -a添加samba用户
照理说可以直接用系统用户密码登录而不用
我按以往配好[homes]以后不行
于是就去搜了下,也没搜到啥有用的
问ai,回答也一堆没用的,主要就是说homes设好就可以了
究竟如何配置才能无需smbpasswd而直接能用系统账号密码登录
--
FROM 116.237.134.*
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:*
%n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
# cat /etc/pam.d/samba
@include common-auth
@include common-account
@include common-session-noninteractive
我的缺省就能用
【 在 giggham 的大作中提到: 】
: ubuntu 2004,这个应该不重要
: 之前很多年都是手动smbpasswd -a添加samba用户
: 照理说可以直接用系统用户密码登录而不用
: ...................
--
FROM 119.139.196.*
不合适吧,samba都没有加密
【 在 giggham 的大作中提到: 】
: ubuntu 2004,这个应该不重要
: 之前很多年都是手动smbpasswd -a添加samba用户
: 照理说可以直接用系统用户密码登录而不用
: ...................
--
FROM 45.77.189.*
unix password sync
【 在 giggham 的大作中提到: 】
: ubuntu 2004,这个应该不重要
: 之前很多年都是手动smbpasswd -a添加samba用户
: 照理说可以直接用系统用户密码登录而不用
: ...................
--
FROM 117.173.158.*
相关的配置跟你一样,但就是不行。。
【 在 iwannabe 的大作中提到: 】
: 标 题: Re: 请问samba要怎么配置才能让系统用户能直接登录
: 发信站: 水木社区 (Fri Feb 23 17:42:25 2024), 站内
:
: [global]
: log file = /var/log/samba/log.%m
: logging = file
: map to guest = Bad User
: max log size = 1000
: obey pam restrictions = Yes
: pam password change = Yes
: panic action = /usr/share/samba/panic-action %d
: passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:*
: %n\n *password\supdated\ssuccessfully* .
: passwd program = /usr/bin/passwd %u
: server role = standalone server
: server string = %h server (Samba, Ubuntu)
: unix password sync = Yes
: usershare allow guests = Yes
: idmap config * : backend = tdb
:
: # cat /etc/pam.d/samba
: @include common-auth
: @include common-account
: @include common-session-noninteractive
:
: 我的缺省就能用
:
:
: 【 在 giggham 的大作中提到: 】
: : ubuntu 2004,这个应该不重要
: : 之前很多年都是手动smbpasswd -a添加samba用户
: : 照理说可以直接用系统用户密码登录而不用
: : ...................
:
: --
:
: ※ 来源:·水木社区 mysmth.net·[FROM: 119.139.196.*]
--
FROM 116.237.134.*