Install Samba server on CentOS 6/7

1

Install the software

First, install the software itself:

yum install samba samba-client samba-common

Create OS user

Second, you might want to create a separate OS user to work with Samba. Let's name it sam. If you don't know how to do that then read how to create a new Linux user.

Set Samba user password

Next, you need to set your Samba user's password. You will use this password to mount your server as a network drive.

smbpasswd -a sam

Update the firewalld

If you use firewalld then you also might need to allow access to Samba ports from the Internet:

firewall-cmd --permanent --zone=public --add-service=samba
firewall-cmd --reload

Run the service

service smb start
Share this page:

See also how to:

How to install PHP FastCGI Process Manager (FPM) on CentOS 7
How to install PostgreSQL database server on Linux
A very simple steps to install PHP 7 on CentOS 7
How to install Java runtime environment on CentOS 7
How to install MySQL database server on CentOS 7