LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 05-08-2006, 07:04 AM   #1
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Rep: Reputation: 15
sharing folders betwen windows and linux


hi friends,
i am using red hat linux(kernel 2.6) and sharing its folders with a windows server in a network.
Windows server is able to access the linux folders through Samba but I am unable to access the folders present on windows from the linux system.
I have checked the firewall settings. They are perfectly fine.
Can anyone tell me how can i solve my problem..??
 
Old 05-08-2006, 07:51 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Question Please be clear,

Hi,

Can you tell what does it mean by
"I am unable to access the folders present on windows from the linux system."
Are you getting some kind of errors?
If so what are those?
Have tried mounting windows shares on linx?

Please post the errors you are facing
 
Old 05-08-2006, 08:06 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
To further those questions, how are you trying to mount the windows share on your linux machine? from the command line? A line in your fstab?
 
Old 05-08-2006, 10:19 PM   #4
anandlinux
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
i think u need to mention a windows username and his password in samba.conf
file under /etc. so that the user gets the proper authentication required for accessing the folder from windows, As he logons with the mentioned username.
 
Old 05-08-2006, 11:21 PM   #5
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
please tell me the procedure to mount windows share on the linux system...I will be very thankful if anyone can do it fast.
 
Old 05-09-2006, 12:19 AM   #6
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Lightbulb Solution:-

Hi Ashley,

You can mount as follows:-

mount -t smbfs //winmachinename/winsharename /mnt/somepoint/


This will ask username /password which you will have to provide mannually. Share will remain mounted untill next reboot.

The automatic and permenant way:-

in /etc/fstab make follwing entries:-

//winmachine/winshare /mnt/windows/c smbfs defaults 1 1


//winmach2/cdrom /mnt/windows/cdrom smbfs username="urusername",password="yourpassword" 1 1

Hope your problem will get solved!
 
Old 05-09-2006, 01:48 AM   #7
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
hey.. thanks a lot..that was very helpful and i was just luking for how to make an entry in fstab when u helped me out.
But i didnt understand ont thing..
In place of winmachine ,i will give the machine name on which i have windows,but what is this entry of winmach2 about?? what is winmach2 and why have u used cd-rom along with that?
please reply me fast if possible.
Thank u for ur time.
 
Old 05-09-2006, 02:37 AM   #8
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Lightbulb

Hi Ashley,

Winmach2 entry was as follows:-
//winmach2/ cdrom /mnt/windows/cdrom smbfs
username="urusername",password="yourpassword" 1 1


simply it was a machine with name winmach2
which had a share named "cdrom" mounted on "/mnt/windows/cdrom" with username on windows "urusername"
and a password "yourpassword"
 
Old 05-09-2006, 03:10 AM   #9
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
thank u so much for ur assistance..
I have solved my problem completely..
Thanks a lot..
 
Old 05-13-2006, 11:33 AM   #10
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing Folders in Linux kopite2012 Linux - Newbie 12 06-17-2010 05:00 PM
sharing folders betwen windows and linux ashley_31 Linux - Networking 5 05-09-2006 03:14 AM
whats difference betwen this folders? xcore_on Linux - Newbie 5 04-29-2006 06:58 PM
Sharing Folders between Linux Boxes JCScoobyRS Linux - Networking 2 03-25-2004 03:41 PM
Share an internet connection betwen a linux server and a windows client GiGA Linux - Software 4 08-21-2002 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration