Samba Configuration

Samba is the server that connects from Linux to Windows. Most of us have one or more Windows computers. As we are going to use the server as file server for Windows we require a Windows interface. Samba arranges just for that! During installation of Ubuntu we have already installed Samba. Now we need to configure it for use at home.

Samba maintain its own user database. The users that require access to the file server will also to be configured in Samba. In this example we will congigure Samba through the command line. WebMin also allows you to congigure all details by its interface.

Think of the users at your home that require acceess. Then ad these users within Ubuntu linux User database. I myself have used the same passwords for Linux as well as Samba. Ad these users:
sudo smbpasswd -a user1

New SMB password: (type the password, you do not see your typing)
Retype new SMB password: (type the password, you do not see your typing)
Added user user1

Repeat this for each user that requires access to the file server.

We adjust the configuration of the server:
sudo nano /etc/samba/smb.conf

Add configuration as you please:

[bibliotheek]
path = /media/d1/bibliotheek
writeable = yes
read = cees sylvia media
write = cees

[service]
path = /media/d1/service
writable = yes
read = cees
write = cees

[system]
path = /media/d1/system
writable = yes
read = cees
write = cees

 

Restart the Samba Server:
sudo service smbd restart

Now you can test from a Windows computer if you are allowed to acess the server. In Windows Explorer type \\yourserver and see if your get to the file structure created on the server.

Last Updated on 5 november 2016