#navbar { (To hide nav bar in blogger) height: 0px; visibility: hidden; display: none; }

Tuesday, September 8, 2009

 

Samba Server Config(RHEL5)


Requirements of SAMBA Server
Softwares   ==     samba
                             Sambacommon
                             Samba-client
  
Config. File         ==     /etc/samba/smb.conf
Port No’s   ==     137   (Netbios name service)
138        (Netbios datagram service)
139        (Netbios session service)
Service       ==     smb
Daemons    ==     smbd & nmbd     
Samba user file==        vi /etc/samba/smbpasswd
Diagnostic Tool==       testparm
To Configure Samba Server
In Samba Server System
Check & Install S/W
Rpm –qa samba*
Yum remove samba* -y
Yum install samba* -y
Create a folder to share
Useradd satish
Open Config. File to set share name & share directory
Vi  /etc/samba/smb.conf
:set nu
In line 41, make sure network information & go to last paragraph(Shift g)
Uncomment last 8 lines by removing semicolumn(;) to enable & change parameters respect to requirements i.e; 265 – 272 line no’s.
Set Samba password on user
Smbpasswd –a satish
123
123
Restart services to activate changes
Service smb restart
Check share definitions of Samba Server
Testparm & press Enter key
In Linux Client
Share data from Linux client
Mount / -o username=
Mount//192.168.0.254/linux         /mnt –o username=satish
Check mount point
Mount
Enter into share directory
Cd /mnt
Ls
Mkdir jan feb mar
To share Samba Server from Windows clients
Go to start menu –run & provide server ip/share name
i.e;\\192.168.0.254\linux
Provide username & passwd.
To configure Samba to share resources(Cd-rom & pendrive)
In Server system
Insert  the cd & mount cd
Mount /dev/cdrom  /media
Provide mount point in Config. File
Vi  /etc/samba/smb.conf
Shift g
Path=\media
:wq
Service smb restart
To check from windows client
Go to Start –run &
Provide serverip including share name.

Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]