There is a new version of this tutorial available for CentOS 8.

Samba Server Configuration in CentOS 6.5 - Page 2

This tutorial exists for these OS versions

On this page

  1. 3. Secured samba server

3. Secured samba server

For this I will create a group smbgrp & user srijan to access the samba server with proper authentication

groupadd smbgrp
useradd srijan -G smbgrp
smbpasswd -a srijan
[root@server1 samba]# smbpasswd -a srijan
New SMB password:
Retype new SMB password:
Added user srijan.
[root@server1 samba]# 

Now create the folder viz secured in the /samba folder & give permissions like this

mkdir -p /samba/secured
cd /samba
chmod -R 0770 secured/

Again edit the configuration file as :

vi /etc/samba/smb.conf

[secured]
 path = /samba/secured
 valid users = @smbgrp
 guest ok = no
 writable = yes
 browsable = yes
service smb restart
service nmb restart


Further check the settings as follows

[root@server1 ~]# testparm 
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Anonymous]"
Processing section "[secured]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

Now at windows machine check the folder now with the proper credentials



You will again face the issue of permissions to give write permission to the user srijan do:

cd /samba
chown -R srijan:smbgrp secured/


Now samba user  have permissions to write in the folder. Cheers you have done with samba server in centos6.5.

Share this page:

0 Comment(s)