Thursday, February 4, 2010

Tips create domain in Linux

Hi Guys I wanna share about How to create domain in Linux,I got this article from webhost forum, I'm thanks to Mr.Asif and I hope this article is hopeful for us(Newbie)

Let you know in Linux we can creat 2 types of Domains. the first is puerly Linux based(Server and Clients both are using Linux OS) and the Second is Linux based Domain Controller Server is running Linux OS and clients are using Windows OS.


Bellow are the steps:


check samba is installed or not by "#
rpm -q samba"
if not you can install from cd and open "
#vi /etc/samba/smb. conf"
and than set these configurations
==============
SIMPLE SAMBA
==============
Set WorkGroup
Set Directory
add user
set password with # smbpasswd -a khan
============ ========= =====
SAMBA AS DOMAIN CONTROLLER
============ ========= =====
Set domain name
enable netlogon folder + also create it
local master yes
OS level 64
domain master yes
prefer master yes
domain logons yes
wins support yes
Now add machine account
# useradd -M -s /bin/nologin computername$
if it’s not allowing you to create user with $ then create it without $ sign
then edit /ect/passwd and place $ sign in front of your user & it’s directory and save it.
Now Generate machine accunt
# smbpasswd -am computername
Now check log file
#tail -f /etc/samaba/ smbpasswd
Now you will see your computer account with $ sign which is necessary.
create a New user account to allow windows machine to log in to domain.
Let say
# useradd khan
Now set samba password not linux password
#smbpasswd -a khan
password—pakistan
Have fun———>100 % tested and written
===
TIP:After all this remove the $ sign placed in front of user and directory–> /etc/passwd


Ok guys That's all,cheers

0 komentar: