What is it?
Samba allows you to setup windows shares on Linux.
Samba is very popular software. Your distribution should have it.
What Workgroup Should I Use?
If you're setting up your home network, you could go with the default 'WORKGROUP'.
Check your windows box by right-clicking on "Computer" (from the start menu or elsewhere) and clicking on "Properties". The workgroup it is using should be listed. Changing it requires a reboot.
Configuring a Linux Server
- Install Software
- Configure SELinux
- Open up ports
- Configure SMB
- Start smb
- Start nmb
# yum -y install samba
These instructions can be found in /etc/samba/smb.conf.
# setsebool -P samba_enable_home_dirs on
Open Up Ports
The following ports need to be open. The graphical program system-config-firewall sets these all when you check off "samba". Be sure to apply the changes you make.
- UDP ports 137, 138
- TCP ports 139, 445
See iptables for notes on how to do this right.
To configure, edit the /etc/samba/smb.conf.
Likely, the only change you need to make is to set the workgroup. You also want to set the netbios name.
# service smb start # chkconfig smb on
# service nmb start # chkconfig nmb on
- My share isn't showing up.
- Did you start nmb? Did you set netbios name in smb.conf?