Share resourses between windows and rhel

Part 1 Share files from windows to Linux
1. Installed windows 2003 active directory in VMware, 
share c:\share and put one file text under this folder, the whole network is using
VMnet3. IP address is 192.168.0.99.  The DHCP is disabled to save memory.
 
2. Under Linux go to terminal, use su login root account, 
go to /etc/sysconfig/network-scripts/
Change ifcfg-th1 ( I used two network cards, 
the eth0 is bridged with real network card, the eth1 is using VMnet3) into
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.138
NETMASK=255.255.255.0
NETWORK=192.168.0.0
TYPE=Ethernet
HWADDR=xx:xx:xx:xx:xx:xx ?KEEP THIS AS ORIGINAL!!!)

 

3. run "ifdown eth1" and "ifup eth1" to restart eth1 
4. mkdir /mnt/test2/
5. mount -cifs -username=xxx,password=xxx //192.168.0.99/share /mnt/test
6. now goes to /mnt/test, you will see the shared resources from windows 2003

Part 2 share files from linux to Windows
1. Install samba on linux server, go to linux installation disk\server, rpm 杋vh ./Server/samba-3.0.23c-2.i386.rpm
2. Rpm -vh ./Server/samba-client-3.0.23c-2.i386.rpm
3. After installed samba,
configure /etc/samba/smb.conf
Change smb.conf into
[global] 
workgroup = mygroup 
netbios name=LinuxServername 
server string = Linux Smaba Server 
Security = share guest 
account = administrator 
[linuxShare] 
Description= First share folder 
path=/home/share 
public= yes 
writeable = yes 
browseable = yes 
guest ok =yes 
visible = yes 

 


4.#makedir /home/share
5.#setup turn off firewall and selinux
6.# ./sbin/service smb start 6. go to windows server 2003, run \\192.168.0.138 you will see the shared folder

About Lei

I am an IT specialist with over 10 year experience - years on Automation, on-Premise or Azure.

I am happy to develop however never want be a full time developer. Only do what I have to do. If it has to be PowerShell,HTML, PHP, CSS, C#, VBS or JS, front end or backend, so be it, doesn't matter!

Spent years with Windows, SCCM, SharePoint, SQL and Exchange servers. For last several years, I have been actively working under On Premise > Azure environment.

THERE IS NO WAY BACK!!!

Current Certificates:
    Microsoft® Certified-
  • -Enterprise Administrator
  • -Database Administrator
  • -SharePoint Administrator
  • -Administering and Deploying SCCM 2012
Red Hat Certified Technician
ITIL V3 Foundation - Practitioner

Working on Azure Certificates now and hopefully they can stop upgrading their questions one day! GIVE ME A BREAK!

Contact Lei

Name *
Email *
Comments *

Traffic since 10/08/2016

Today48
Yesterday83
This week672
This month1968
Total416328

Visitor Info

  • IP: 54.227.51.103
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

1
Online

2017-12-17

Login