How to Install & Configure Samba on Ubuntu
Samba is a standard system service that runs in the background on Ubuntu. The Samba application is designed to allow sharing of files between Ubuntu and Windows. In order to run Samba, you'll first need to install it and configure it through Ubuntu. This can be done through a series of system commands that will be familiar with regular Ubuntu users. Those not as familiar should still be able to configure Samsa to serve their purposes.
Instructions
-
-
1
Open your terminal window. Type in the following:
"sudo apt-get install samba smbfs"
This will install Samba onto your system.
-
2
Configure Samba by entering the following command into your terminal window:
"sudo gedit /etc/samba/smb.conf"
-
-
3
Find the section of the configuration file that begins with "####### Authentication #######." This is where you're going to make some changes. Remove the ";" in front of "; security = user" and copy and paste the following on the line beneath:
"username map = /etc/samba/smbusers"
This tells Samba that it needs to find users from the smbusers file. Next you'll need to add a user.
-
4
Run the following command:
"sudo smbpasswd -a <username>"
Change "username" to whatever you want your username to be. For example, if your user name was "Bill", it'd look like this:
"sudo smbpasswd -a <Bill>"
-
5
Add the username you created in step four to the Samba's user file by typing in the following command:
"sudo gedit /etc/samba/smbusers"
Type in the following:
"<ubuntuusername> = “<samba username>”"
Change "ubuntuusername" to your Ubuntu username, and "samba username" to the username you created back in step four. After this, Samba will be completely configured and accessible.
-
1