O'Reilly logo

Linux All-in-One For Dummies, 5th Edition by Emmett Dulaney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Working with Samba and NFS

In This Chapter

arrow Sharing files with Network File System

arrow Installing and configuring Samba

arrow Setting up a Windows server using Samba

If your local area network is like many others, it needs the capability to share files between systems that run Linux and other systems that don’t. Thus, Linux includes two prominent file-sharing services:

  • Network File System (NFS): For sharing files with other Unix systems (or PCs with NFS client software)
  • Samba: For file sharing and print sharing with Windows systems

This chapter describes how to share files using both NFS and Samba.

Sharing Files with NFS

Sharing files through NFS is simple and involves two basic steps:

  • On the Linux system that runs the NFS server, you export (share) one or more directories by listing them in the /etc/exports file and by running the exportfs command. In addition, you must start the NFS server.
  • On each client system, you use the mount command to mount the directories that your server has exported.

The only problem in using NFS is that each client system must support it. Microsoft Windows doesn’t come with NFS, so you have to buy NFS software separately if you want to share files ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required