on ‎2013 May 18 2:29 PM
Hi,
I need to share folder in linux system from my windows system. how to share.. Please let me know the procedure..
cheers,
R.Ramkumar
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
To do this you need to install at least the kernel module for cifs (if not already installed via the standard kernel) and at least the samba client and samba libraries.
After this you have to share the folder on the windows computer as a network share, setup the apropriate ACLs on the network share and then mount the windows share as a cifs volume in linux.
The mountpoint should be beneath the folder /mnt according to the linux standard base.
To have the network share mounted after every restart of the server automatically you have to put a line like this into the file /etc/fstab:
//servername.domain/share_name /mnt/share_name cifs soft,directio,rw,uid=pixadm,gid=sapsys,credentials=/etc/filename
The share_name should not contain any whitespaces and should be limited to 8 characters. Allthough not really necessary this might prevent some unexpected problems.
The /mnt/share_name can be any name you want beneath the /mnt folder and needs to be created before you actually mount the network share for the first time. The filename for the credentials has two lines in it:
username=Domainuser
password=xxxxx
The credentials file should only be readable by root!
After you've set up the file /etc/fstab for the network share, the credentials file and created the mountpoint you can mount the network share with the following command as user root:
mount /mnt/share_name
In case of an error you can use the following command for a more verbose output:
mount -v /mnt/share_name
Go on from there if you have problems or post the result here.
Hope this helps....
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I understand you want to access windows share folder into Linux server.
[root@testsap2 mnt]# mount -t cifs //10.16.2.20/dbbackuplnx /mnt/share -o username=Administrator
Password:
[root@testsap2 mnt]# cd /mnt/share
If you have to access linux share folder into windows have to do SAMBA.
search on Google for samba config.
Regards
Nikunj Thaker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ram,
If you are on a Windows computer and want to copy files to/from a Linux computer, you can use the free tool "WinSCP", as long as you have the ssh server running at the Linux computer.
I believe that this would be the easiest way.
Regards,
IsaÃas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Isaias,
winscp is for copying the files.. But in linux system I need to share my folder from my windows system.. I have mounted in root directory but if i access from my sap application its showing permission denied.. and i could not change the permission for that directory (get_data) also..
How to change permission in this directory /root/.gvfs/get_data..
cheers,
R.Ramkumar
Hello Ram,
So it seems that you need to access files at a Windows computer from an SAP system running at a Linux server. Is this correct?
If yes, do not mount it under "/root". Mount it under "/mnt" instead.
Please also confirm that your mount command is mounting the share in read/write mode, in case you need SAP to be able to write data to the Windows share as well, and that the user/password you're
using at the mount command has read/write permissions at your Windows computer (at both the share and the filesystem).
Cheers,
IsaÃas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.