Q. Can you connect a Linux server to a Windows server 2003 or Windows server 2008 for sharing files and printer? Can you access files stored on Windows server from Linux server?

A. Short answer – yes.

Long answer – Windows operating system uses Server Message Block (SMB) application-level network protocol (also known as CIFS). It is mainly used to provide:

  1. Shared access to files
  2. Printers
  3. Serial ports
  4. Miscellaneous communications between nodes on a network.

In order to communicate with a Windows server you need special software on a Linux (UNIX) called Samba, which provides following services:

  • File and print services for various Microsoft Windows clients
  • Can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain member
  • Can be part of an Active Directory domain
  • Access file stored on Windows
  • Access shared windows printer and so on

Samba program is by default included in many Linux distributions. Discussion releated to samba installation and configuration is beyond the scope of this FAQ section. I recommend following resources:

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • leaonow Aug 20, 2008 @ 11:50

    like this site,but for this piece of work i would say no….the title is really attractive but the content does piss me off
    plz….if possible
    give an step by step how to
    like how to inject the linux in the domain
    how to set up a samba share in a windows domain


  • buster jones Jul 11, 2009 @ 23:36

    Don’t listen to the previous post: Your FAQ quickly gets to the point and directs us to information that can keep the ball rolling, while reminding us that there isn’t a short answer to the question. thanks for taking the time to share… (so to speak… :)

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum