Install Samba in Debian #apt-get install samba samba-common samba-client This will start samba installation and prompted for the following questions First you need to enter the Workgroup/Domain Name in this example i am using ruchi select ok and press enter Preparing directories and users Create directories for Samba to use with Windows #mkdir windowsshare Now we need to create users to access this directiory #useradd david Now create a password for this user using the following command #smbpasswd -a david Samba configurationĀ By default samba configuration file located at /etc/samba/smb.conf In this file main section is Global where you can define all parameters and the example as follows [global] workgroup = ruchi netbios name = fileserver server string = %h server (Samba %v) log file = /var/log/samba/log.%m max log size = 1000 syslog = 0