Thursday, April 3, 2008

Samba server

Samba server uses TCP/IP protocol that is installed on host server. When correctly configured, it allows that host to interact with a Windows client or server although it a windows file or print server. With SAMBA you can make your linux computer a part of microsoft based network.
Requirements
  • samba-common-3.0.10-1.4E.i386.rpm
  • samba-3.0.10-1.4E.i386.rpm
  • samba-client-3.0.10-1.4E.i386.rpm
Configuration file
/etc/samba/smb.conf
Procedure : Install the required packages
#rpm -ivh samba* --force --aid
Now open the configuration file in vi editor
#cd /etc/samba
#vi smb.conf
At line 41 remove semicolon and
host allow=192.168.0.0/24 (allows permission to whole 192.168.0.0 network)
Now Go to end of the configuration file
Copy from lines 265 to 274 (Copy 8yy) and paste below last line. The whole paragraph may be edited as below.

[share1]
comment= ;write the comments
path= /home/bilton ;path of the directory to be shared
public=no
writable=yes
printable=yes
create mask=0765 ;UMask value for the files created

Now restart teh service
#service smb restart
At client side
Install the package samba-client
#rpm -ivh samba-client* --force --aid
#smbmount //192.168.0.1 /home/bilton /sambabilton -O username=michael
password :
(the above line mounts the shared directory /home/bilton on samba server(192.168.0.1) on local system director /sambabilton , the username used for connecting samba server is michael. Then a password is prompted for the particular user michael.
This is the basic configuration i hve written for using samba server. Further any help required is fully encouraged.

No comments: