Need help integrating Samba into a Windows Domain.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help integrating Samba into a Windows Domain.
So I have the task of integrating our businesses first Linux server into the network.
My success or failure in this project will determine whether we use more linux in the future or scrap linux and continue using microsoft products.
This Server is running Ubuntu 9.01 loaded with Samba and Likewise-Open.
This server must be able to join the domain for the shares to be established.
Your mission, should you chose to accept is to help me establish a samba shared folder on the network available to all Microsoft users.
I joined the domain successfully according to the server however I cannot see the Ubuntu machine on the network. I can ping it but something is wrong.
Where should I start looking to find out what is broken?
Is the server in the right workgroup? Do you have your "hosts allow" and "interfaces" parameters set correctly? Is the server accepting traffic on UDP 137,138 and TCP 139? That's where I would start looking.
I was having some issues with my Krb5.conf file so I deleted it thinking I could reinstall Likewise-open and it would regenerate the krb5.conf file but it did not. Now I have no Krb5 file and I need to find out how to regenerate the default file for it. Any ideas on which program actually creates this file so I can reinstall that program and get the file back?
Ok I have fixed the missing krb5 file by reinstalling Likewise Open.
I successfully connected to the domain but still can't see the linux server KMSOLRA04 in the windows network directory.
I should be able to just type in "\\KMSOLRA04\incoming" in any windows explorer and see the share but something behind the lines is incorrect.
Where do I check the "Hosts Allow and Interfaces" parameters?
It should be the network address/netmask (eg. 192.168.7.0/24) of the ethernet card in the server. You should also set "hosts allow" to let the other machines on the network connect to it. It's in the global section. In mine it's the third or fourth parameter.
Ok I changed the address to the Linux servers IP 192.168.168.37/8 (Im not sure about the 8 bit.)
That IP address is typically a Class C network and should have a netmask of 255.255.255.0, so the value should be 192.168.168.37/24, but double check the configuration.
Quote:
I have the most recent version of samba and there is no Host option in the smb.conf file.
Can I simply enter one anywhere in the global section?
Here is my global in the smb.conf. Is this correct?
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = KMLSDC1.KMLS.COM
realm = KMLSDC1.KMLS.COM
password server = 192.168.168.35
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
# What naming service and in what order should we use to resolve host names
# to IP addresses
; name resolve order = lmhosts host wins bcast
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
hosts allow = 192.168.168.37
interfaces = 192.168.168.37/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes
With that configuration, the only machine that will be able to connect is 192.168.168.37. If you want other machines on that network to connect, you can use 192.168.168. or 192.168. etc.
What is the netmask for interface eth0 as reported by ifconfig?
Are you saying this address (192.168.168.37) is the entry for an end user according to samba? as in a user that will have access to the samba file share? If that is the case I do not wish to specify each address because we use DHCP with 20+ users so you can see where this can get tricky. I want everyone on the domain to have access to the samba share.
Also, I am pretty sure the domain name that Ubuntu wants is: KMLSDC1.KMLS.COM but I would like to know for sure. Is there a place I can go to know for sure either in Ubuntu or my windows server? I am not sure if it only needs the parent domain: KMLS.COM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.