Share: Clients will authenticate against a particular share on the Samba server. Server: This mode is not used anymore – it defines an external authentication server.ĭomain: This type is a centrally located account which is shared between domain controllers. User: Each user will have an account on the machine hosting Samba. I have always found user to be the most reliable. Security = user: This line defines the method of authentication Samba will use. Let’s go line-by-line as needed (many of the lines should be self-explanatory). There are a few things we must touch on with the above configuration. NOTE: Everything in bold is system specific. Let’s take a look at a minimal (but useful) smb.conf file. Within each section will be directives that define various aspects of a configuration. – This section will define a shared printer. – This section will define a share name. – This is the section that contains configuration options used in all sections. The smb.conf file is broken down in to sections, with each section beginning with (Where NAME is the name of the section). The above simply makes a backup of the smb.conf file, removes the original, and then creates a new, empty smb.conf file.īefore we actually begin creating our smb.conf file, let’s take a look at how this file is structured. sudo mv /etc/samba/smb.conf /etc/samba/.I always like to start from scratch, so I do the following (from command line): Out of the box, this file might be rather daunting. There is only one file you need concern yourself with – /etc/samba/smb.conf. Once Samba is installed, it is time to start configuring. If you are using Fedora that command would be yum install samba smbfs. Within the terminal window, issue the command sudo apt-get install samba smbfs. If you are using Ubuntu (or a Ubuntu-like distribution), you will use sudo. If you are using Fedora (or a Fedora-like distribution), you will su to the root user. So open up your favorite terminal window and prepare to install.Īll of the installation commands will be issued as either the root use or by using the sudo command Whether you use su or sudo will depend upon which distribution you are using. Since we are going to be dealing with the command line, let’s install Samba in the same way. You will be using a text editor and a few commands. For this article, we will look at the smb.conf configuration file and how it is set up and how to create new shares and even share printers. This time around I’ll focus more on Samba and how it is installed and configured to allow for the sharing of files and folders. That article was more of a “let’s see how we can do this quickly and easily” tutorial. But that article didn’t dig too deeply into Samba itself. Recently I did an article about this very topic (“ Sharing Files & Folders Between Linux, Mac, and Windows“) which skimmed this topic, showing how simple it is to allow these different operating systems to see one another – with the help of Samba. If you are either a power home user or you are in a business environment, you know the importance of machines being able to see one another.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |