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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.