There is a new revision of this tutorial available for CentOS 7.
Samba Server Configuration in CentOS 6.5 - Page 2
3. Secured samba server
For this I will create a group smbgrp & user srijan to access the samba server with proper authentication
useradd srijan -G smbgrp
smbpasswd -a srijan
Now create the folder viz secured in the /samba folder & give permissions like this
mkdir -p /samba/secured
chmod -R 0770 secured/
Again edit the configuration file as :
[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
[[email protected] ~]# 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:
chown -R srijan:smbgrp secured/