w3resource

Windows connectivity

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

Previous: Software management
Next: Scheduling



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/linux-system-administration/Windows-connectivity.php