It’s really easy to share file between Linux-Linux which we can simply install
NFS then mount it easily from other computer.
But this article is to describe how to allow a Windows computer access
READ/WRITE to a Linux computer in a very quick, easy, simple way.
For Arch Linux, here is what I did to achieve above purpose.
1. Install samba package
sudo pacman -S samba
sudo pacman -S smbclient
2. Edit config file
By default, we have a sample config which you can copy and edit itself.
cp /etc/samba/smb.conf.default /etc/samba/smb.conf
And then, vim /etc/samba/smb.config
In [global] section, you may want to edit two line:
workgroup
server string
This is optinal so identify your computer easily on network
And then, go to [public] to edit it to your own need.:w
This section is to define public folder which everybody can access to it.
3. Adding user.
At this time, every thing is ready but you need to add an user with the same
name of one of the account on your system. Later, on Windows, once Windows user
go to Network > Linux Computer, they will be asked for an username/password.
They will need this password.
Because I’m using Linux under account lambasino so I run command:
sudo pbedit -a -u lambasino
And then I entered a password for this samba account. Remember, this is a
password for SAMBA, not password for current account under linux system so you
can enter anything you like. This username/password pair is to other user on other computer connect to your machine via it. This way your real password will be not exposed to the world. You give them samba username/pass instead.
4. Start samba server
sudo rc.d start samba
That’s all.
On Windows, go to, enter the username/password which you created as above. Ok,
it’s time to copy something fun over your LAN network ;P