Thursday, August 21, 2014

Samba Server Configuration In Ubuntu 14.04 LTS-Secured Samba Sharing Server

                                Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients.
                               SMB, which stands for Server Message Block, is a protocol for sharing files, printers, serial ports, and communications abstractions such as named pipes and mailslots between computer
 
Secured Samba Sharing Server
Ubuntu SAMBA Server
1. Install the samba
apt-get install samba samba-common python-glade2 system-config-samba
2. Create a group “smbgrp” & user “jagan” to access the samba server with proper authentication
root@server1:~#addgroup smbgrp
root@server1:~#adduser jagan -G smbgrp
root@server1:~# smbpasswd -a jagan
New SMB password:
Retype new SMB password:
Added user jagan
3. Create the folder viz secured in the /samba folder & give permissions like this
root@server1:~#mkdir -p /var/samba/secured
root@server1:~#cd /var/samba
root@server1:~#chmod -R 0770 secured/
4. Edit the configuration file as : (Add at the end of the file )
vi /etc/samba/smb.conf
[secured]
path = /var/samba/secured
valid users = @smbgrp
guest ok = no
writable = yes
browsable = yes
5. Restart the Samba services to enable the new configuration:  
service smbd restart
service nmbd restart
Client Windows Machine
                         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 jagan do
Modified the Permissions in Samba Server
cd /var/samba/
            chown -R jagan:smbgrp secured/

No comments:

Post a Comment

bloggerwidgets