Samba Server

1.Install 'samba' package

2.Explore default configuration:
   a. '/etc/samba/smb.conf' - monolithic configuration file
   b.'/etc/samba/smbusers' - Samba Server translation accounts DB. Used when not using AD mode.

3.Change configuration and start service
   a.'vim /etc/samba/smb.conf' - make changes: i.e. default workgroup
   b.'service smb start && chkconfig smb on && chkconfig nmb start && chkconfig nmb on'
   c.'netstat -ntlp' - TCP:139, TCP:445 (CIFS) are controlled by : 'smbd'
   d.'netstat -nulp' - UDP:137(NMB), UDP:138(NMB) - NETBIOS Naming

Winbind Configuration

1.Install 'samba-winbind' - 'yum install samba-winbind'
2.Edit: '/etc/security/pam_winbind.conf'
3.Confirm the presence of Kerberos: 'rpm -qa | grep krb5'
4.Edit: '/etc/krb5.conf' - with appropriate ADS realm
5.Edit: '/etc/hosts' - with server information for ADS box
6.Edit: '/etc/nsswitch.conf' - controls default resolver
7.Edit: '/etc/pam.d/system-auth' - general system authentication
8.Edit: '/etc/samba/smb.conf' - include Winbind-related directives

'/etc/samba/smb.conf' - directives
security = ads
idmap uid =10000-20000
idmap gid =10000-20000
template shell = /bin/bash
template homedir /home/%D/%U

9.'net ads join -U administrator'
10.Start Winbind: 'service winbind start'
11.Configure service to auto-start in SYSV levels: 2-5
   a. 'chkconfig winbind on'
12.'wbinfo -u'