Results 1 to 2 of 2
  1. #1
    Asif is offline Newbie
    Join Date
    Jul 2009
    Posts
    16

    How to create domain in linux

    In Linux we can creat two types of Domains. One is puerly Linux based(Server and Clients both are using Linux OS) and Second is Linux based Domain Controller Server is running Linux OS and clients are using Windows OS.


    Steps:

    check samba is installed or not by
    rpm -q samba
    if not then install from cd and open
    vi /etc/samba/smb. conf
    and 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


    That's all, cheers

  2. #2
    susanspy is offline Newbie
    Join Date
    Oct 2009
    Posts
    1
    hello all,


    i am susan here, i am to this post,i have some problem How to create domain in linux this is really great informative post but please do more post here.


    thanks in advance!!!!!!!!!!!!!!!11


    cheers!!!!!!!!!!!!11111

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •