Samba is an open source software that allows to solve communications problems between Windows and Linux. With Samba, you can share folders, printers for Windows clients and can perform as a Primary Domain Controller (PDC) or as domain member. Samba can also be part of an Active Directory (AD) domain.
As a Systems Administrator, one of first things I wanted to do was share folders on Debian with my Windows to transfer easily files. My Debian is a local Web Server to test my PHP5 applications (yes, I am also PHP5 developer). Why do I want share folders without password? Because it is painful every time I need to login and I am working at home where is no danger around me. No one can crack me at home. At home, it is a great way to share files without login.
- How to install and configure samba
- su -
- insert your root's password
- mkdir /home/yourusername/mysharedfolder
- chown nobody /home/yourusername/mysharedfolder
- apt-get install samba
- nano /etc/samba/smb.conf
- security = share
- guest account = nobody
[mysharedfolder] writable = yes path = /path/to/directory public = yes guest ok = yes guest only = yes guest account = nobody browsable = yes
- Ctrl+X and then y
- service samba restart
Optionally, you can use Samba Web Administration Tool (SWAT) to configure the settings of shared folder.
- How to install SWAT
- apt-get install swat
- Go to your favorite web browser and type the next URL: http://localhost:901
- insert your root login
- watch the next video how to configure samba
Samba is very useful tool for who want share files between Windows and Linux and SWAT is also very useful for who want configure settings of sharing easily.
I have created another article about Samba before but this one requires a login. If you want to do login, please read this article.