#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.

 

DNS Sever Configuration in RHEL5


Requirements of DNS Server Configuration
Software’s                    == bind* cach *
Config. Files (1)   ==/etc/named.rfc1912.zones
       ==/etc/named.caching-nameserver.conf
Port no                          ==53
Service & Daemon       == named
Configuration of DNS Server
In DNS Server System
Check & Change Hostname = vi /etc/hosts
                                   
                                                 = vi /etc/sysconfig/network
Check  S/W
Yum remove bind* cach* -y
Yum install bind* cach* -y
Enter into Config file (1) to set Forward Lookup Zone(FLZ) & Reverse Lookup Zone(RLZ)
vi  /etc/named.rfc1912.zones
:set nu
From 21st line copy 11 lines i.e; 11yy & paste them at last line(Shift g & p)
& change parameters from 50th-60th lines
i.e; zone “iiit.com” IN {
          type master;
          file “for.satish”;
          allow-update{none;};
          };
Zone “0.168.192.in-addr.arpa” IN{
          Type master;
          File “rev.satish”;
          Allow-update{none;};
};
:wq(save & quit).
Copy & Configure FLZ & RLZ
 cd /var/named/chroot/var/named
To copy FLZ
cp –p localhost.zone for.satish
To copy RLZ
cp –p named.local rev.satish
To Configure FLZ
vi for.satish
SOA  server.iiit.com.
NS    server.iiit.com.
Master        A       192.168.0.254
: wq (save & exit).
To Configure RLZ
vi rev.satish
                   SOA  server.iiit.com.
                  
                   NS     server.iiit.com.
254             PTR  server.iiit.com
Note: In this file replace local host with FQDN
i.e. :1, $s/localhost/server.iiit.com.
: wq (save & exit).
Provide Self System IP in resolv file
vi /etc/resolv.conf
nameserver 192.168.0.254
In config file (2) provide Self & Client systems ip
vi /etc/named.caching-nameserver.conf
: set nu
In 15 th line no. provide self system ip
In 23 rd & 32 nd line no’s provide client ip’s 192.168.0.0/24
: wq (save & exit).
Restart service to activate changes
Service named restart
Chkconfig named on
To check try to dig FLZ
dig hostname
dig server.iiit.com
To check RLZ
dig –x ip
dig –x 192.168.0.254
Note: If the answer comes “1” DNS is configured correctly & if answer comes “0” DNS is not configured properly.
To check from Linux client provide DNS IP in dns file
i.e.;    vi /etc/resolv.conf
         
          192.168.0.254
         
          : wq
To check FLZ
dig hostname of DNS
To check RLZ
dig –x .
To check from Windows client
In windows client, provide dns ip in TCP/IP, primary dns column -192.168.0.254.
To check in Windows
Go to start – run – cmd
nslookup server.iiit.com (FLZ)
nslookup 192.168.0.254(RLZ)

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

Subscribe to Posts [Atom]