четверг, 12 ноября 2015 г.

CentOS 7 Samba

yum install -y samba samba-client samba-winbind* ntp krb5-workstation
kinit alex@MSAD.LOCAL.DOM
klist
kdestroy
klist
net ads join member -k -S adsvr.msad.local.dom -U alex -d 1
net ads testjoin
net ads keytab create -U alex
klist
ls -l k*
systemctl enable winbind && systemctl restart winbind
systemctl status winbind
systemctl enable smb && systemctl restart smb
systemctl enable nmb && systemctl restart nmb
wbinfo -u
wbinfo -g
getent passwd
getent group
id alex
chown -R alex:"пользователи домена" ./samba

http://samba.ninja/2015/10/centos-7-samba-ad-member-server/