How do I join a Windows 2003 Active Directory domain from Linux system?

Recently I was working on small project with a new company. They are Microsoft only shop. Finally, Linux made entry into their shop.

ADVERTISEMENTS

These days Linux is more common in enterprises. Since Linux systems were limited (as compare to number of windows boxes) they don’t want new set of administration tools and additional user accounts i.e. they want to use Windows 2003 Active Directory domain from Linux system.

First you need to configure both Samba (smb.conf) and MIT Kerberos (krb5.conf) services. Next type the following command:

# net ads join –UAdministrator

You will be prompted for domain admin password. Above single command is use to join Active Directory domain from Linux system. It should work with FreeBSD system too.

See also:

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
3 comments… add one
  • Richard Nyanzi Jan 10, 2008 @ 18:14

    This is great… quite a number a variety of issues.please include more security related issues.
    Thanx

  • Thad Oct 2, 2008 @ 4:21

    From Ubuntu 8.04 (but will work on other distros)

    Add application Likewise.
    Fill in blanks.

    V01L@

  • Jake S. Jul 8, 2013 @ 4:02

    You should also point folks to the free Centrify Express (http://www.centrify.com/express), it worked well for me to join Linux/Mac/UNIX to AD, plus it also supports mobile and SaaS, so it goes beyond Linux vis a vis tying in disparate systems/apps into a Microsoft-centric shop.

Leave a Reply

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

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.