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.
  • 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
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= (allows permission to whole 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.

comment= ;write the comments
path= /home/bilton ;path of the directory to be shared
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 // /home/bilton /sambabilton -O username=michael
password :
(the above line mounts the shared directory /home/bilton on samba server( 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: