Connect A Linux Server To A Windows Server 2003 or 2008 / Vista / XP Computer

https:/‮‬/www.lautturi.com
Connect A Linux Server To A Windows Server 2003 or 2008 / Vista / XP Computer

To connect a Linux server to a Windows server or computer, you will need to install and configure a file sharing protocol that is supported by both operating systems. One common option is to use the Server Message Block (SMB) protocol, which is natively supported by both Linux and Windows.

  1. Install the samba package on the Linux server:
sudo apt-get install samba
  1. Configure the Linux server as a SMB client by editing the /etc/samba/smb.conf file. Add the following lines to the file:
[global]
   workgroup = WORKGROUP
   client signing = yes
   client use spnego = yes
   kerberos method = secrets and keytab

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[public]
   path = /srv/samba/public
   public = yes
   writable = yes
   guest ok = yes

Replace WORKGROUP with the name of the Windows workgroup.

  1. Restart the samba service to apply the changes:
sudo systemctl restart samba
  1. On the Windows machine, open the Network and Sharing Center and click the "Change advanced sharing settings" link. Enable file and printer sharing, and if necessary, enable network discovery.

  2. You should now be able to access the Linux server from the Windows machine using the \\server\share notation.

Created Time:2017-10-16 14:38:42  Author:lautturi