通过ssh登录ubuntu,修改/etc/下的smb配置文件,
uidq4932@hzh57415u:/work$ cat /etc/samba/smb.conf
[global]
security = ads
realm = V01.NET
workgroup = V01
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum group = yes
template homedir = /home/%D/%U
template shell = /bin/bash
client use spnego = yes
client ntlmv2 auth = yes
encrypt passwords = yes
winbind use default domain = yes
restrict anonymous = 2
kerberos method = secrets and keytab
winbind refresh tickets = true
[work]
comment = VDI_SHARE_DIR
path = /work
browseable = yes
create mask = 0777
valid users = uidq4932
available = yes
writeable = yes
read only = no
public = no
修改完成后使用命令检查下配置testparm -v /etc/samba/smb.conf
service --status-all 查看smbd是否有运行,
systemctl reload smbd.service 重新加载配置
se