Create an Active Directory Infrastructure with Samba4 on Ubuntu – Part 1

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

16 Responses

  1. Tererei Aruee says:

    how to add acl at /etc/fstab as mine was so totally different with what is on your tutorial, if there’s a way to verify that ACL is on at your system that would be very helpful. I am using Ubuntu Server 16.04 and I follow the tutorial and everything is fine but I am not sure whether ACL is on at my ADC.

    thanks

    • Matei Cezar says:

      No worries, if you’re using Ubuntu 16.04, acl should be enabled by default on ext4 file system.
      Use this command to verify is ACL are enabled on fs: sudo tune2fs -l /dev/sdaX |grep acl

  2. Mr.cunt says:

    you forgot a – in sudo samba-tool domain provision –use-rfc2307 -interactive it should be sudo samba-tool domain provision –use-rfc2307 –interactive

  3. Graewer says:

    There is a LITTLE mistake in the code for installation of winbind…

    sudo apt-get install samba krb5-user krb5-config winbind libpam-winbind libnss-windbind

    If you have problems installing libnss-winbind, try to write it without “d” in mid ;)

    Beside this little thing: Awesome tut! Thx a lot!

    • Matei Cezar says:

      Yes, there’s a typo in the code you’ve mentioned. The correct misspelling of the package is libnss-winbind . It error will be fixed.

  4. Matei Cezar says:

    There is type there! I’ve noticed and took the screenshot before correcting the error. Anyway the second nameserver belongs to second AD DC, which is offline most of the time. You should be probably safe as long as local DNS resolution or first AD DC is online.

  5. Rahul Tidke says:

    Is this series applicable to CentOS 7 also (with all the equivalent CentOS 7 commands)? Thanks..looking forward to next parts!!

    • Ravi Saive says:

      @Rahul,

      The series is specially based on Ubuntu distribution, but it will also work on all Linux distributions with slight changes in command installation.

  6. Flodumi says:

    Why so many reboots?

    • Matei Cezar says:

      There are two reboots. First to apply system-wide hostname correctly and second to apply network interface changes accurately. You can choose to modify both files and then issue one reboot after you’ve modified the last file.

  7. helloworld says:

    edit file /etc/nsswitch.conf
    hosts: files mdns4_minimal [NOTFOUND=return] dns

    #new line
    hosts: dns files mdns4_minimal [NOTFOUND=return]

  8. Ernie Johnston says:

    It is near the end of Point 15.

  9. Ernie Johnston says:

    Anyone notice the line
    nameserver 102.168.1.253 ?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 202,035
  2. 9,267
  3. 38,621

Are you subscribed?