1) Create a shared folder on window box.
2) Login to UNIX server as a root user and create an directory as below.
mkdir -p /mnt/test
3) Then start the smb services.
orarac2:/mnt/test # service smb status
Checking for Samba SMB daemon running
orarac2:/mnt/test #
4) Check the window server accessiable from Linux box.
nmblookup -A 192.168.223.34
Looking up status of 192.168.223.34
SV-L-ANUJ – B
WORKGROUP – B
SV-L-ANUJ – B
WORKGROUP – B
MAC Address = 00-21-70-BA-12-99
5) Then put the entry for hostname name in /etc/hosts , which is recognized on network. From above “SV-L-ANUJ” hostname recognized on network.
cat >> /etc/hosts
192.168.223.34 SV-L-ANUJ
Ctrl + c
6) Checking the accessiablity of server name and username of window box from Linux Box.
smbclient -L SV-L-ANUJ -U Anuj
Password: / give the password of Window Box user account
Domain=[SV-L-ANUJ] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
——— —- ——-
E$ Disk Default share
IPC$ IPC Remote IPC
F$ Disk Default share
anuj Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
DATA (E) Disk
Domain=[SV-L-ANUJ] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
——— ——-
Workgroup Master
——— ——-
7) Then mount the window drive from Linux:
orarac2:/mnt/test # mount -t smbfs -o username=Anuj,password=password //SV-L-ANUJ/anuj /mnt/test
If any one want it to use for oracle backup and all, they can configure to access like below to allow oracle user to access the drive with full permission.
# mount -t cifs -o forcedirectio,username=anuj,password=password,uid=oracle,gid=dba,file_mode=0770,dir_mode=0770 //SV-L-ANUJ/anuj /mnt/test
Thanks to all, hope it will help to all of you to improve your Tech skill.
