LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2024, 03:08 PM   #1
grounddolphin
LQ Newbie
 
Registered: Mar 2023
Posts: 12

Rep: Reputation: 0
how to create a domain server and join pc to that domain


hi there,

As i am new to linux and trying different things, Im wondering how in linux that we can create a domain server and how just like in windows you can join computers to that domain. Im currently using rocky, centos 7 and ubuntu. And im just curious and want to test to create a domain server and join computers to that domain.

Also is it possible for example my domain server is rocky linux and i would like to join my centos 7 and ubuntu to that rocky linux domain? Also is windows machine can be join to that domain as well?
 
Old 01-12-2024, 03:44 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
If you want to inter-operate with Windows machines, then you have to use Samba.

This program is widely used and available for most Linux distributions. It's quite stable and flexible, having been around for a few decades now. There are a few different ways you can use it.

Their website contains a lot of documentation. The page you're looking for is:

https://wiki.samba.org/index.php/Set...ain_Controller
 
1 members found this post helpful.
Old 01-12-2024, 03:48 PM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by grounddolphin View Post
hi there,
Hi!
Quote:

As i am new to linux and trying different things, Im wondering how in linux that we can create a domain server and how just like in windows you can join computers to that domain. Im currently using rocky, centos 7 and ubuntu. And im just curious and want to test to create a domain server and join computers to that domain.
Well, that is really not quite a thing. You see Domain Controllers are Windows servers. The closest you can get in the Linux world is a SAMBA server that provides SOME of the Windows Domain Controller functionality. I have run both, and neither is trivial so plan on taking some time for training yourself.
Quote:
Also is it possible for example my domain server is rocky linux and i would like to join my centos 7 and ubuntu to that rocky linux domain? Also is windows machine can be join to that domain as well?
Well as I said, a Windows Domain Server cannot really be a Linux machine. You might want to set up a SAMBA server, but that is not a 10 step list to get everything right: you need a book or two. There are entire web sites dedicated to some SHORT instructions to get it working. If you are sure that is what you want to do, you absolutely CAN do that, but make sure that fits your need and intent.
There is no Linux Domain, as Linux and Unix do not depend upon anything like Domain membership. You ABSOLUTELY can add Linux servers and desktops to a Windows domain based on either a Windows Domain Server or a Samba server if you want. The normal reasons you might want to do this involve a business that must run a Windows domain, that also has Linux systems and you want to share authentication/account information and network resources. (Although if you ONLY want shared authentication, there are better ways.)

Why are you looking into Windows Domains in relation to Linux servers?
 
1 members found this post helpful.
Old 01-12-2024, 04:38 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Simpler.
Start a ssh server on the linux machine. Any linux machine can ssh, scp, sftp to another linux machine. Windows 10 has scp, ssh server and client available for it. I haven't bothered with samba for years.

Edit:
And that is for you using it. You should know where all of the machines are. If someone else needs to access something from the winodws machine on a linux box, then start a little web server on it. Windows can access the linux machine from a web browser.

Last edited by teckk; 01-12-2024 at 04:41 PM.
 
Old 01-12-2024, 04:56 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by teckk View Post
I haven't bothered with samba for years.
It depends upon your requirements. OP seems to need more than just the ability to share files.
 
Old 01-13-2024, 02:59 AM   #6
grounddolphin
LQ Newbie
 
Registered: Mar 2023
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by wpeckham View Post
Hi!Well, that is really not quite a thing. You see Domain Controllers are Windows servers. The closest you can get in the Linux world is a SAMBA server that provides SOME of the Windows Domain Controller functionality. I have run both, and neither is trivial so plan on taking some time for training yourself. Well as I said, a Windows Domain Server cannot really be a Linux machine. You might want to set up a SAMBA server, but that is not a 10 step list to get everything right: you need a book or two. There are entire web sites dedicated to some SHORT instructions to get it working. If you are sure that is what you want to do, you absolutely CAN do that, but make sure that fits your need and intent.
There is no Linux Domain, as Linux and Unix do not depend upon anything like Domain membership. You ABSOLUTELY can add Linux servers and desktops to a Windows domain based on either a Windows Domain Server or a Samba server if you want. The normal reasons you might want to do this involve a business that must run a Windows domain, that also has Linux systems and you want to share authentication/account information and network resources. (Although if you ONLY want shared authentication, there are better ways.)

Why are you looking into Windows Domains in relation to Linux servers?

Hi, thanks for the info, i will check on it and try.

Actually im just curios on how's the "domain" like thing in linux. I am just new and trying different things and was wondering if there is also like domain in linux and you can join other computes to it. Now i have hint that it is SAMBA will try it and hopefully it will work. Thanks a lot

Last edited by grounddolphin; 01-13-2024 at 03:02 AM.
 
Old 01-13-2024, 04:03 AM   #7
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,785

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
Quote:
Originally Posted by grounddolphin View Post
Actually im just curios on how's the "domain" like thing in linux. I am just new and trying different things and was wondering if there is also like domain in linux and you can join other computes to it.
NIS and NFS.
 
Old 01-13-2024, 04:40 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Usually domain lookups are done by domain name servers like Unbound, BIND, DNSMasq, or PowerDNS. :P

(It seems that "domain" has a radically different meaning in m$ world. Like cults, they use unique vocabulary to isolate their victims from the main community.)

There are a lot of file sharing options. OpenAFS, Ceph, NFS, and maybe GlusterFS are some of the complicated large scale solutions.

However, if you are looking for Kerberos bundled with a bunch of other tools, then as mentioned the recent versions of Samba are likely what you need.

There are also more ready-made distros like Zentyal which wrap up Samba for you.
 
1 members found this post helpful.
Old 01-15-2024, 05:02 PM   #9
friendlysalmon8827
Member
 
Registered: Dec 2023
Distribution: Anfroid,Debian
Posts: 85

Rep: Reputation: 5
It's most likely easier for the Linux SAMBA/CIFS and what ever other Unix/Linux cervices ssh/ftp etc you can also join your Linux Servers/Workstations to an existing Windows Nt domain. If you are daring enough you can even attempt configuring either a primary or secondary domain controller via the use of SMBA/CIF and further more you could even configure a sub forest in your existing NT domain.
 
Old 01-16-2024, 10:27 AM   #10
arespi
LQ Newbie
 
Registered: Apr 2016
Posts: 13

Rep: Reputation: Disabled
Hi

It seems to me that you don't want to use a Windows Active Directory domain in linux but the functionality of central authentication for the user accounts just like in windows in the various linux systems in you network. Traditionally there is not such a thing.

Every linux system is like a server on itself with its own accounts. You can set up a same account name between the linux systems but at the end of the day is a separate account that happens to have the same name.

You can use a central authentication server using a LDAP database and telling your linux systems to go and check against the LDAP server if the password given is correct and allow or not the login.

Look for LDAP authentication to see if this is what you need.

Good luck
 
1 members found this post helpful.
Old 01-16-2024, 10:59 AM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
"Domain servers" in a Windows network are always "Windows machines," and there are very few of them and they are tightly controlled (by corporate IT).

Linux can participate as a peer in a Windows network, but will probably not have an administrative role in it.
 
Old 01-16-2024, 01:37 PM   #12
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Quote:
Originally Posted by sundialsvcs View Post
"Domain servers" in a Windows network are always "Windows machines," and there are very few of them and they are tightly controlled (by corporate IT).

Linux can participate as a peer in a Windows network, but will probably not have an administrative role in it.
You CAN make a Linux server act as a domain controller with full Samba 4 and later, but it does not support all of the functions and features of a Windows Domian Controller and administrating it is like administrating Linux not Windows.
I have seen business networks with Windows desktops but Linux servers set up that way, but corporate centralized management is the ONLY good excuse. Also, it is somewhat complex and prone to additional complications and occasional breakage. Instead of working on the strengths or Linux/GNU and Microsoft Windows it tends to combine the vulnerabilities of each.

I advise keeping things simple. Use the Linux/GNU tools for managing your Linux network, Windows tools for managing your Microsoft network, and only mix up the toolset when you are forced to integrate those worlds. (For that case, SAMBA is pure GOLD!)
 
Old 01-16-2024, 06:23 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by sundialsvcs View Post
"Domain servers" in a Windows network are always "Windows machines," and there are very few of them and they are tightly controlled (by corporate IT).

Linux can participate as a peer in a Windows network, but will probably not have an administrative role in it.
There are a few people who administer Linux/Samba-based DCs in production environments who post here and may disagree with you.
 
Old 01-24-2024, 02:43 AM   #14
___
Member
 
Registered: Apr 2023
Posts: 139
Blog Entries: 1

Rep: Reputation: Disabled
IDK M$Win "Domain Controller" vs "Domain Server"
(but I might be interested in learning!)
One webpage says they are the same!

This web-search finds a lot: How to configure Samba 4 as Primary Domain Controller
I also tried: linux AD domain server
https://serverfault.com/questions/72...tory-to-samba4

@#13: Links to LQ posts by "people who administer Linux/Samba-based DCs in production environments"?
(LQ search found toooo much for me to dig thru)

p.s. Learning tip @OP: put 'wiki' in your web-searches, to get good Wikipedia stuff!

Last edited by ___; 01-24-2024 at 02:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
join to AD domain; join with domain credential with ssh nnicola82 Linux - Server 0 11-13-2019 11:45 PM
how to set up ldap server in redhat or centos linux join and create domain users dantezyates Linux - Server 4 12-10-2014 06:10 AM
Can't join Windows 2000 domain using net ads join The Cat Linux - Networking 2 09-23-2008 11:41 AM
Unable to join domain using Net Join command in FC3 client jeb083079 Linux - Networking 9 07-30-2007 02:41 AM
Help using 'net join' to join a windows domain Wapo Linux - Networking 1 04-28-2006 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration