LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-26-2004, 12:40 PM   #1
bjs
Member
 
Registered: Mar 2004
Location: Boston
Distribution: Fedora 2
Posts: 39

Rep: Reputation: 15
I want my linux machine to read/write to an XP share


and probably vice versa, but not neccesarily right away...

Regarldess, I need samba running on the windows box in order to accomplish this right?
 
Old 03-26-2004, 12:45 PM   #2
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
Samba is actually the SMB protocall. Its the same thing windows uses to share directories.

So really all you'll need to do is setup the share on that box and do the following.

create a mount point on the linux box. A mount point is just a directory, it can be anywhere you want, but the standard is to make it in the /mnt dirctory.

now do smbmount //(Computer name or IP)/(Shared Directory) /(Directory to mount point) -o username=(username to access the share),password=(password for the share)

at that point you should be able to read and write to the share via that directory

Last edited by Khabi; 03-26-2004 at 12:48 PM.
 
Old 03-26-2004, 01:03 PM   #3
debuser
LQ Newbie
 
Registered: Mar 2004
Location: Boston
Distribution: Debian
Posts: 16

Rep: Reputation: 0
To just read a XP share you just need to mount the shared drive using smbmount command.(You need to have smbfs)

$ smbmount //<server>/<shared folder> /mnt/<dir>

where <server> is ur windows machine IP or machine name
<shared folder> is the folder u want to mount
<dir> should exist on your linux machine.

To be able to write to the shared folder depends on if you have NTFS write support in your kernel. Best would be to get the latest kernel(2.6.4?) which has NTFS write support.


Hope that helps
 
Old 03-26-2004, 01:11 PM   #4
bjs
Member
 
Registered: Mar 2004
Location: Boston
Distribution: Fedora 2
Posts: 39

Original Poster
Rep: Reputation: 15
that helps a TON thanks...

question regarding that, where would i put that command so i do not need to run it every time? do i just need to create a quick script or something to the like?
 
Old 03-26-2004, 01:17 PM   #5
debuser
LQ Newbie
 
Registered: Mar 2004
Location: Boston
Distribution: Debian
Posts: 16

Rep: Reputation: 0
you can put it in your /etc/fstab file
the problem with that is, you might have to put in your password as well, which is not advisable as anybody can read it.
 
Old 03-26-2004, 02:23 PM   #6
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Rep: Reputation: 16
it works !

Hello, I have tried this and it works !! Im 1/3 happy, cause now I want to easily read files on the Win box from the Linux box, using samba, which is the Vice Versa thing of the solution here. How do I do this ??

Good comment about NTFS, I have a NTFS formatted disk in my Linux box, and I cant write on it, only read. Is there an alternative to SAFELY writing from a Linux box onto a NTFS formatted hard drive?

2 questions, first one is more important and urgent to me
 
Old 03-26-2004, 03:03 PM   #7
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
Quote:
Originally posted by debuser
To be able to write to the shared folder depends on if you have NTFS write support in your kernel. Best would be to get the latest kernel(2.6.4?) which has NTFS write support.
[/B]
I don't believe thats true for the SMB protocall. I've sucessfully had SMB write to NTFS shares without any NTFS support built into the kernel. You have to remember that the linux machine is actually writing to that folder, the windows machine is.
 
Old 03-26-2004, 03:45 PM   #8
debuser
LQ Newbie
 
Registered: Mar 2004
Location: Boston
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Install samba in your linux machine.
You would then need to create users (using smbpasswd) who would access the linux box from windows.

once it has been installed and configured, you can then see the linux box in your network. Clicking it from your windows explorer will prompt u for samba username password.

some helpfull links
http://www.linuxorbit.com/howto/sambahowto.php3 (really well explained)
http://linux-newbie.sunsite.dk/lnag_...ml#samba_setup
 
Old 03-26-2004, 03:56 PM   #9
vr6stress
Member
 
Registered: Jan 2004
Location: Utah
Posts: 54

Rep: Reputation: 15
man i get so lost with all this...

i've been using linneighborhood cuz it makes it alot eaiser...

so here's my issue

on linux (mdk10)
i can see all my windows shares, and i have the ones i want mounted and can read them
i can send stuff to my windows machine, as long as the folder already exists, but i cannot create a folder, or send over a folder full of stuff
i have 2 places listed in linneighborhood - 1 mdkhost, 1 mshome under mdkhost i have the shared folder on my linux box, under the mshome are all my windows shares

on windows
i do not see the linux box
 
  


Reply


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
share read and write permission to users suguname Mandriva 3 01-18-2005 12:53 AM
write access to share on windows machine Delphinusnz Mandriva 0 11-16-2004 02:24 AM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
A share that users can see, read and write to....without password fatboyal Linux - Newbie 11 01-16-2004 08:56 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 11:33 AM


All times are GMT -5. The time now is 04:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration