w3resource logo


web-server

Windows connectivity

Secondary Nav

Windows connectivity

Works as:

  • File server
  • Printer server (including PDF)
  • Domain controller in Windows networks
  • Authentication

for Windows clients

Samba installation

For Windows XP and later clients, there is nothing to install.

For the Linux server:

Install Samba:

sudo apt-get install samba

install-samba

install-samba1

install-samba2

install-samba3

install-samba4

Samba configuration

To define a share (in this example, the home folders), edit the /etc/samba/smb.cnf file:

Make home directories shared, browsable, read-write:

[homes]
comment = Home Directories
browseable = yes
read only =no
create mask = 0775
directory mask = 0775
valid users = %S

Define the password for a share user:

Reload Samba configuration:

sudo /etc/init.d/samba reload

Other Samba capabilities

We just saw the most basic capability of Samba.

Other things you can do:

  • Sharing CUPS printers
  • Various security issues
  • Active Directory integration, including Kerberos authentication
  • Database integration for user information
  • LDAP integration
  • Domain controller or client
  • WINS
  • Remote and local management


Join our Question Answer community to learn and share your programming knowledge.