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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-26-2004, 12:40 PM
|
#1
|
|
Member
Registered: Mar 2004
Location: Boston
Distribution: Fedora 2
Posts: 39
Rep:
|
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?
|
|
|
|
03-26-2004, 12:45 PM
|
#2
|
|
Member
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142
Rep:
|
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.
|
|
|
|
03-26-2004, 01:03 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2004
Location: Boston
Distribution: Debian
Posts: 16
Rep:
|
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
|
|
|
|
03-26-2004, 01:11 PM
|
#4
|
|
Member
Registered: Mar 2004
Location: Boston
Distribution: Fedora 2
Posts: 39
Original Poster
Rep:
|
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?
|
|
|
|
03-26-2004, 01:17 PM
|
#5
|
|
LQ Newbie
Registered: Mar 2004
Location: Boston
Distribution: Debian
Posts: 16
Rep:
|
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.
|
|
|
|
03-26-2004, 02:23 PM
|
#6
|
|
Member
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37
Rep:
|
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
|
|
|
|
03-26-2004, 03:03 PM
|
#7
|
|
Member
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142
Rep:
|
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. 
|
|
|
|
03-26-2004, 03:45 PM
|
#8
|
|
LQ Newbie
Registered: Mar 2004
Location: Boston
Distribution: Debian
Posts: 16
Rep:
|
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
|
|
|
|
03-26-2004, 03:56 PM
|
#9
|
|
Member
Registered: Jan 2004
Location: Utah
Posts: 54
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|