我继承了一个 ubuntu 8.10 服务器,它当前作为 samba 服务器和 apache web 服务器运行。我想用 ubuntu 19.10 制作一个新服务器并复制该服务器上的现有配置。我通常从头开始,我从未将 samba 配置为与活动目录集成。smb.conf 中的这个配置就够了吗?
# Global parameters
[global]
workgroup = domain
realm = domain.com
server string = %h NEWSAMBASERVER (Samba %v)
security = ADS
password server = domaincontroller.domain.com
#security = DOMAIN
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
username map = /etc/samba/smbusers
syslog = 0
max log size = 1000
name resolve order = wins host bcast
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
load printers = No
preferred master = No
local master = No
domain master = No
wins support = Yes
invalid users = root
hosts allow = 10.100., 127.
# printing = lprng
# lppause command = lpc hold '%p' %j
# lpresume command = lpc release '%p' %j
由于 Ubuntu 8 已经很老了,我觉得从头开始会是更好的选择。
本指南有帮助吗?