L I W N: Inux Na Indows Etwork With SAMBA I
L I W N: Inux Na Indows Etwork With SAMBA I
Once integrated a Linux server looks and acts exactly like any other server on a Windows
intranet. You will have the ability to drag and drop files, view server contents and directories
using Windows File Manager, and even edit files on a Linux server from any Windows desktop.
This article is a guide to setting up a full fledged FEDORA LINUX/SAMBA server. If you need
basic steps for connecting Linux with Windows please read my article Windows to Linux:
Basic Networking. If you're a system administrator and are planning to integrate the Linux
server into your AD server environment, I'm sorry I do not go into details how to configure
smb.conf for ADS usernames, although it can be done. I will walk you through the main steps
for installing a SAMBA Server. This, in my opinion, is the first part to any future more
advanced integration.
First, you must allow the Linux server full rights and access to the Windows workgroup and
local domain. That means that either in your Active Server environment you need to reserve
an IP address for the Linux server, or you simply need to ensure a hard coded IP address is
given to the Linux server. The server must have a reserved IP address whether you deliver it
via DHCP or statically assign it in the DNS. This also means that you need to ALLOW SMB
DAEMON to operate. You can ensure your system security does this by editing your
Firewall setup or using system-config-securitylevel .
Second, you must ensure that SAMBA (SAMBA tools and the SMB protocol) is installed and
running on the Linux server. Most versions of Fedora come with the necessary packages. You
should also be sure to update your SAMBA security levels properly if you are having
trouble accessing a shared directory. This is found under Samba Server Configuration tool,
main menu Properties, option Server Settings, and then the tab: Security.
Now you are ready to configure your Fedora Linux/SAMBA machine... aka. SAMBA Server.
While you're looking over this long list of services, please DISABLE things you know for sure you
do not need to run on this SAMBA server. For instance apmd, isdn, etc. But also ensure that key
services such as SMB are selected and RUNNING. Select SMB and press the Start button. If it is
supposedly already running you can press the Restart button to be sure it is indeed running
correctly now.
Now press the Save button to make sure the configuration changes have been saved for future
restarts.
Sometimes using the GUI just does not properly restart the SMB daemon. In such odd cases, I
want to suggest you force a manual restart from the command line with this command:
/etc/rc.d/init.d/smb restart
If you keep having startup failures, where for every reboot you need to perform Step 3, you
may need to manually configure your start up processes so that SMB will always be in the init.d
bootup. Okay, if that sounded ridiculously confusing then how about just going to my article on
manually starting services and configurations.
Be sure to include the Windows workgroup name. In the example above the workgroup has
been changed to net. Your situation may be different. In many cases naming the workgroup
simply workgroup is fine, so long as your Windows PCs connect to this same name.
Under this same window, click on the Security tab. It comes by default with the appropriate
settings for a basic SAMBA Server. The Authentication mode should be User. You would need to
change this only if you plan to allow logins based on the Microsoft ADS.
Press OK to finish making basic changes to the server.
B. Select SAMBA Users
Under the Preference menu item choose Samba Users
In this window you must Add at least one user who will have access to the SAMBA Server.
Notice that only user accounts you created in step 4 should be added to this listing.
Press the Add User button, then from the pull down select a user. Fill out the additional
information needed for this SAMBA user. Press OK when finished.
C. Adding A Shared Folder
Under the SAMBA Server Configuration window, you must create at least one SAMBA share
directory.
Press the Add button and then the Browse button. Now choose a folder you wish to make
available to SAMBA users. Be careful, some folders have permissions settings that do not allow
sharing. Now be sure to select the Read/Write option to allow people full access. Don't press OK
yet!
You should see your shared folder appear under the listing as shown in the example above.
D. Adding Users
In the same window, select the second tab labeled Access. From here choose the first option
labeled Only allow access to specific users and select the users you wish to give access to this
specific SAMBA shared folder. Press OK when finished.
You can repeat steps C and D for each new shared folder.
Once completed, please choose File from the menu then choose Quit.
Hopefully this saved all of your settings properly. If you encounter issues with the graphic
SAMBA configuration tool, such as it failing to accept your changes, then please read the
Troubleshooting Tip 4 located below.
If this does not work, perhaps if the server is not yet included in your DNS, try accessing the
SAMBA Server through its IP address: \\10.2.2.3
Obviously you need to use an actual hostname or IP address and not my example.
If all works well you should instantly see a SERVER LOGIN window. Now login using a SAMBA
created username.
You should then instantly see the shared folder as well as the individual user's personal folder
that exist on the SAMBA Server.