[Fedora 16] Sharing files with your Windows computers
If you, like myself, are running multiple computers on your network, one or more running Fedora, and you like to share files across the network between computers then this guide is for you. I have encountered multiple problems when doing this between Linux and Windows, this guide will show you how to overcome them.
There are 5 main steps:
- Installing Samba
- Configuring your shared folders
- Adding users to the access
- Starting the service on boot
- Configuring your Firewall
1. Installing Samba
To install Samba on to your computer go ahead and open up Terminal on your Fedora computer and enter the following:
sudo yum install samba samba-client
Here you will, of course, be prompted to enter your password so do so and press ‘y’ to confirm you would like to install the packages.
2. Configuring your shared folders
Okay, so you’ve installed Samba, that was easy! Next you’ll have to configure what folders you would like to share on the network. To do this, again open up Terminal and run the following:
sudo gedit /etc/samba/smb.conf
This will open gedit (text editor), here scroll down to the [global] section and add the name of your Workgroup (by default it’s WORKGROUP, but this can be changed). Once you’ve changed that you’ll have to scroll down even further, right to the bottom of the file and add some shared folders, like so:
[lawrence] #the name of your share
path = /home/lawrence #the path to your share
public = yes #whether or not the file is public
writable = yes #if the user can write to the folder or not
When you’re happy with the settings go ahead and save the file, then close it.
3. Adding users to the access
To be able to access the file you will have to log in to the computer from your windows computer. To do this you’ll need a username and password, type the following into Terminal:
sudo smbpasswd -a Lawrence
Replace Lawrence with your Fedora username. Then choose a password, this does not need to be the same as your Fedora password, it can be anything.
4. Starting the service on boot
Now, finally, you’ll most likely want Samba to start every time you boot so you can access your files all the time. This is very easy to do, all you need to type is:
sudo systemctl enable smb.service nmb.service
This will start the Samba service every time Fedora boots.
5. Configuring your Firewall
Next you’ll need to open up your Firewall configuration. This can be done by going to Activities and typing Firewall, here you’ll be prompted for your password, enter it and proceed to allow Samba through your firewall, by ticking the box next to it.
Apply the changes and reboot, you should now be able to access your files from your Windows PC using:
\\fedoracomputernamehere
In my case it would be:
\\lawrence-pc
That’s it, done! Please leave a comment if you need further help.


