From the course: Linux: File Sharing Services

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up a Samba server

Set up a Samba server - Linux Tutorial

From the course: Linux: File Sharing Services

Start my 1-month free trial

Set up a Samba server

- [Instructor] In order to provide a Samba share on our server, which other clients can connect to, we'll need to install some software. In particular, the Samba, Samba-client, and Samba-common packages. They should be available from your distro's repository. To get a Samba server setup, we'll take these steps. We'll install Samba, and then we'll explore the configuration file, and make changes. We'll create passwords for users, and we'll ensure access to the share with SELinux, and firewall settings. Here on my CentOS machine, I'll type sudo yum install samba samba-client samba-common. When the software is installed, it's time to configure it. The etc/samba/smb.conf file holds the settings for the Samba server. Let's open it up with sudo vi /etc/samba/smb.conf. Depending on the version, and the platform that you're using, this file can be short, or it can be a few hundred lines long, which means this is a great time to recap how to move around in Vim. Control + f, and control + b…

Contents