Install and configure Samba File Server

samba

Samba is an Open Source, free files server available for Linux OS. Its installtion is very simple, and has even high end features such as making it work similar to PDC in Windows for authentication.

In this document we will work on configuring a basic settings just o share a folder to Windows client systems.

 

]# yum install samba
]# useradd john
]# passwd john
]# systemctl start smb
]# smbpasswd -a john
]# cp /etc/samba/smb.conf /etc/samba/smb.conf.orig
]# vi /etc/samba/smb.conf
Add the following at the end

[data]
path = /data
read only = No
guest ok = No
valid users = harryd
browsable = yes

]# mkdir /data    
]# chmod 777 /data/

It may be better to disable SElinux

]# systemctl restart smb

======================== ==========

  • Test
    Now run the following command in a Windows client host
    \\<ip address of the server>
    The username should be “\john