Monday 21 May 2012

Accessing Windows Folder from Linux


Many times we face question on how to access the Windows Shared folder in Linux other than a root user. Below is the way out to achieve the same.
For accessing the Windows share inside a Linux machine, first we need to install the samba client.
Samba Client Installation:

  1. You can install the samba client either using the rpm file downloading it from internet.Or you can use yum install to install the samba client.I would suggest to use the yum install as it installs the dependencies libraries for the install.

Folder on Linux
Next we need to create a directory inside the Linux machine where we can see all the files and folders of the Windows.

Mounting


Mounting the windows share other than a root user

//10.176.239.31/Sample /mnt/xpone cifs password=oracle,uid=oracle,gid=oracle,file_mode=0777,dir_mode=0777,user,noauto 0 0

chmod u+s /sbin/mount.cifs

NB: There was first an issue with OEL6 Samba client and we had to downgrade to a lower version.
There is a known bug so we had to use the following command to downgrade:

yum downgrade samba-winbind-clients samba-common samba-client libsmbclient

No comments:

Post a Comment