Samba Server Configuration Step 1 : Install the samba packages using yum server [root#] yum install samba* Step 2 : Verify the samba packages [root#] rpmquery -qa | grep samba o/p : samba-common-3.5.4-68.el6.i686 samba-winbind-3.5.4-68.el6.i686 samba-3.5.4-68.el6.i686 samba-client-3.5.4-68.el6.i686 samba-winbind-clients-3.5.4-68.el6.i686 Step 3 : Change to / directory [root#] cd / Step 4 : Create a directory for samba server [root#/] mkdir sdishaserver Step 5 : Change to sdishaserver [root#/] cd sdishaserver Step 6 : Create a file a1.txt [root#sdishaserver] cat > a1.txt Hi all I am working on samba server [CTRL + D] Step 7 : View the contents of the file [root#sdishaserver] cat a1.txt Hi all I am working on samba server Step 8 : Change to root's home [root#sdishaserver] cd /root Step 9 : Give full permissions to "sdishaserver" directory [root#] chmod -R 777 /sdishaserver Step 10 : Get the IP Address of your machine [root#] ifconfig o/p: 192.168.2.2 Step 11 : Get the hostname of your machine [root#] hostname o/p : localhost.localdomain Step 12 : Using GUI open the file /etc/samba/smb.conf Make the following changes 1. Go to Line No 74 and change [ global section] workgroup = localhost 2. Go to Line No 77 and change [ global section] netbios name = localhost.localdomain 3. Go to Line No 79 and change [ global section] interfaces = lo eth2 192.168.2.2 ( Your IP) 4. Go to Line No 80 and change [ global section] hosts allow = 127. 192.168.2. (First 3 digit of your IP ending with ".") 5. Go to end of file and press 3 enters or leave 3 lines an write : [dishashare] comment = disha sharing path = /sdishaserver public = yes writable = yes browseable = yes write list = Administrator ** Save The File Step 13 : Check the smb.conf file [root#] testparm o/p : [global] workgroup = localhost netbios name = localhost.localdomain interfaces = lo eth2 192.168.2.2 hosts allow = 127. 192.168.2. ---------- [home] ------ [printer] -------- [dishashare] comment = disha sharing path = /sdishaserver write list = Administrator read only = No guest ok = Yes Step 14 : Start the samba service [root#] service smb start Step 15 : Make NFS service on [root#] chkconfig nfs on Step 16 : Stop the firewall [root#] service iptables stop Step 17 : Enable the samba home directory [root#] setsebool samba_enable_home_dirs = 1 Step 18 : Create a user for samba server [root#] useradd sdisha Step 19 : Assign password [root#] smbpasswd -a sdisha o/p : New SMB password : (123) Retype new SMB password : (123) Added user sdisha Step 20 : Restart the samba service [root#] service smb restart Step 21 : Check using smbclient [root#] smbclient -L 192.168.2.2 -U sdisha Enter sdisha's password : (123) o/p : ** You should your share : [dishashare] Testing The Samba Server Step 1 : Using GUI Navigate to Places -> Connect To Server ** a small window of Connect To Server will open Step 2 : Change the Service Type : "Windows Share" Step 3 : Enter Your IP Address in Server Text Box Server : 192.168.2.2 Step 4 : Click Connect