Shashikant shah

Thursday, 30 August 2012

Samba Primary Domain Controler rhel5.5


                                                        

1. Configure DNS than configure samba PDC

# yum install samba*

#vim /etc/samba/smb.conf

#In Global settings:
Workgroup =shashi.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
browseable = yes
writable = no

[profiles]
path = /home/profiles
create mask = 0755
directory mask = 0755
writable = yes


# save file
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 (unicom) to login, here unicom is name of client machine name and joining unicom into group ID 200.


#useradd -d /dev/null -g 200 -s /sbin/nologin unicom$


#smbpassswd -m -a unicom
or
#smbpasswd -a unicom


#smbpasswd -a root (Give to password for root)


#service smb restart
#chkconfig smb on


Create, enable samba user to login in windows macine


#useradd ashutosh
#smbpasswd -a ashutosh
#smbpasswd -e ashutosh (user check)
#service smb restart
#chkconfig smb on

No comments:

Post a Comment