Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 1.04 KB

05_windows_domain.md

File metadata and controls

32 lines (31 loc) · 1.04 KB

Samba 加入为 AD 域成员服务器

  • 安装以下软件包 (此处软件包是为windows用户登录linux机器服务)
dnf install realmd oddjob-mkhomedir oddjob samba-winbind-clients \
      samba-winbind samba-common-tools samba-winbind-krb5-locator
  • 要在域成员中共享目录或打印机,请安装samba软件包
dnf install samba
  • 备份现有的 /etc/samba/smb.conf Samba 配置文件
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
  • 加入域。例如,要加入名为ad.example.com的域
realm join --membership-software=samba --client-software=winbind ad.example.com
  • 启动Samba服务
systemctl enable --now smb
systemctl enable --now nmb
  • 防火墙添加服务
firewall-cmd --add-service=samba --permanent
firewall-cmd --reload
  • 参考连接:

https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/9/html/configuring_and_using_network_file_services/assembly_setting-up-samba-as-an-ad-domain-member-server_assembly_using-samba-as-a-server