Bellow are the steps for samba mounting :
1) Share the folder on Windows machine.e.g on "1521.1101.1491.2271" windows machine I have shared "DocumentRepository" folder.
Give full access to any user e.g administrator
2) Create directory on Linux box on which you want mount.
e.g /u/ServicesPortal/DocMgmtAttachments
3) Edit /etc/fstab file and make entry for your mount . Please refer attached file for your referemce
e.g //1521.1101.1491.2271/DocumentRepository /u/ServicesPortal/DocMgmtAttachments smbfs credentials=/etc/samba/siebelFile.credential 0 0
Note : In fstab file, line starting with "#" represents comment.
4) Create credential file required for mountig. Please find attached credential file for your reference.
In above example we have credential file at /etc/samba/siebelFile.credential location.
It contains following entry :
username=administrator
password=administrator
5) Now run following command for mounting
Command is : "mount -a"
6) To check mounting is done or not, run following command which will show you alla mounts
Command is : "mount"
7) for mannual mount use
mount -t smbfs -o username=Nihilent,password=N3wp@55,workgroup=augsoa //1521.1101.01.361/DocumentRepository /u/ServicesPortal/DocMgmtAttachments
Note :
a) fstab file looks as bellow
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
#Following mount is used as a alternative to CMDB mount (Represents portal file server location)
//1521.1101.1491.2271/DocumentRepository /u/ServicesPortal/DocMgmtAttachments smbfs credentials=/etc/samba/siebelFile.credential 0 0
----------------------------------------------------------------------------------------------------------
b) siebel.credential file looks as bellow :
username=siebfiles
password=siebfiles
gid=UKLHCSVSBLWEBBL
No comments:
Post a Comment