SAMBA PDC Configuration in Linux
Samba PDC, PDC stands for Primary Domain Controller. We all know that samba is to share the linux files with windows clients. With samba PDC, a linux user can login into windows machine in a network by domain name.
#yum install samba*
#vim /etc/samba/smb.conf
#In Global settings:
Workgroup =abc.com
server string = samba # hostname to identify
netbios name = samba
#Domain controller option:
security = user
passdb backend =tdbsam
domain master = yes
domain logons = yes
logon path = \\%L\profile\%U
#Browser Control options
local master =yes
os level = 33
preferred master = yes
#Share definitions
[netlogon]
path = /home/netlogon
writable = no
[profiles]
path = /home/profiles
create mask = 0755
directory mask = 0755
writable = yes
create directory:
#mkdir -m 1777 /home/profiles
#mkdir -m 1777 /home/netlogon
Adding a group with group ID 200
#groupadd -g 200 machine
Creating user(system name) to login, here lap is name of client machine and joining lap into group ID 200.
#useradd -d /dev/null -g 200 -s /sbin/nologin lap$
#smpassswd -m -a lap
enter passwd: ***
Renter passwd : ****
#Service smb restart
#chkconfig smb on
Create, enable samba user to login in windows macine
#useradd user1
#smbpasswd -a user1
#smbpasswd -e user1
Client side
Go to properties of computer and click on change
Click change settings
Change your computer name as lap only, don’t change domain.
Restart your PC and change your domain name as abc.com









