LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 02-15-2005, 09:05 AM   #1
ckr
Member
 
Registered: Jul 2004
Posts: 45

Rep: Reputation: 15
Linux 2 Linux using SAMBA?


I just configured SAMBA so that I could use a Linux file server at home. It works like a charm from the two windoze boxes, but one of those boxes is a dual boot system with linux on it. Needless to say, I'd rather use Linux on that system and save windows for just games. Hell, if I could, I'd put it on my laptop, but I *so* don't want to mess with Linux on an Alienware box.

Anyway, I can't access the files on the share drive from the linux machine. Note, that I can see them. I can even put new files on that drive. What I can't do, is read and write to the files that I put there from a windows box.

I set up accounts on both Linux boxes that should be able to access the files. Naturally, the account on the server has no problem with file access, but the one on the other Linux box can't read or write them. And I don't want to make them world writable.

Should I continue to try and use Samba for this, or just NFS mount the drive. And if I do NFS mount the drive, how will that affect those files when I try to access them from a windows machine after I've modified them using Linux? They're just text files, by the way.

Any advice?

Thanks
 
Old 02-15-2005, 10:53 AM   #2
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
Its much easier to just use NFS in Linux. It won't affect the files in the directory. I have the same setup. I have a public directory that is mountable by SMB and NFS. Been using it for three years now with no problems.

ken
 
Old 02-15-2005, 12:11 PM   #3
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

Quote:
I set up accounts on both Linux boxes that should be able to access the files
You don't have to create an account on the client machine, when you smbmount the share, you've got to use the user/password defined on the server.

root@server# smbpasswd bar
New SMB password: foobar
Retype new SMB password: foobar

foo@client# smbmount //server/share /mnt/share -o username=bar,password='foobar'

I agree with ken, nfs is much easier to use, but I prefer samba since when a nfs share is not accessible anymore, then the process who tried to access the share defuncts... whereas with samba it just gives an error (as an exemple, using nfs to access my roomate's mp3 is not cool, since when he shuts is computer, xmms hangs until he reboots)

But, if your server is allways up, nfs is simplier and more efficient (f*!$^¨@g netbios !)

Oh ! another thing, samba uses well known port numbers (137:139) whereas nfs uses rpc (and so dynamical port negotiation) which is a problem to forward through a firewall (but does it make sense to accept file sharing through a firewall... sometimes yes, I think)

Bye
 
Old 02-15-2005, 12:29 PM   #4
ckr
Member
 
Registered: Jul 2004
Posts: 45

Original Poster
Rep: Reputation: 15
I did add the users on the server using the samba password commands when I set this up the other day. No Joy. I think I'm gonna try the whole NFS thing and hope that works

Thanks!
 
  


Reply



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
new to linux looking some information on Linux, like samba,webmin,etc., karthikeyan_14 Linux - Networking 0 08-18-2004 04:51 AM
Samba 3.0.2, Kerberos, Linux (RHAS3.0), Win2kAD - linux smb server with a w2k client irishb3 Linux - Networking 2 07-20-2004 08:05 AM
Linux to Linux Printer sharing with Samba jweby Linux - Networking 2 06-06-2003 07:30 PM
Samba: Linux Not establishing itself on network, WinXP cannot see Linux either shassouneh Linux - Networking 5 07-27-2002 06:28 PM
Linux unable to connect to another Linux machine via Samba (SMB) Please help shassouneh Linux - Networking 4 03-11-2002 02:26 AM

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

All times are GMT -5. The time now is 05:29 PM.

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