LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-30-2003, 04:40 AM   #1
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Rep: Reputation: 30
Samba, NFS and gnome


My question: my home netwok is composed of a desktop computer running win 2k and a laptop running slackware 9.1.
I have a stack of files on the desktop that I want to be able to use from the laptop (not really the other way around). I understand that the solution is to use NFS on win2k and samba on linux but don't really know how to do it.

1) How do I run an nfs server on my win2k box (sorry, not massively relevant here). Any software to recommend?
2) Is samba a default on slackware 9.1 and how do I set up linux to see my nfs drive?
3) What about permissions and login?
4) My desktop uses NTFS as a filesystem. Do I need to have NTFS support on my linux kernel to read those files from the NFS drive.
5) Is samba supported by default in Gnome 2.4 (I use dropline) or do I need to install extra software?

Help more than welcome as I am a total newbie in this domain...
Thanks in advance
L.
 
Old 10-30-2003, 05:01 AM   #2
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: Samba, NFS and gnome

Quote:
Originally posted by laurentbon
My question: my home netwok is composed of a desktop computer running win 2k and a laptop running slackware 9.1.
I have a stack of files on the desktop that I want to be able to use from the laptop (not really the other way around). I understand that the solution is to use NFS on win2k and samba on linux but don't really know how to do it.

You don't need NFS on the Win2K side to export the filesystem. You just export it the normal way (using a drive share), and the Linux system uses samba to mount it. No NFS required.

Any recent distro worth its salt will have samba installed and configured, and will have icons or menu items provided to browse your network environment. If the Win2K box is exporting the filesystem, it will show up in that.
 
Old 10-30-2003, 08:27 AM   #3
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
You mean that I just need to share the folder I want to access? Is it what you mean by 'export it the normal way'?
And then, I just type something like smb://<machine IP> in Nautilus?
Would that work?
Thanks for the help!
 
Old 10-30-2003, 08:36 AM   #4
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by laurentbon
You mean that I just need to share the folder I want to access? Is it what you mean by 'export it the normal way'?
And then, I just type something like smb://<machine IP> in Nautilus?
Would that work?
Thanks for the help!
'Yes' and 'yes' to the first two questions.

I don't know Nautilus well enough to answer your second question, but it might well work . Most modern file managers have a way to transparently access SMB shares across the network.

However, you could also put the share in your /etc/fstab so you can mount it from the command line. Put a line such as this in /etc/fstab:

Code:
//win2kserver/share /mnt/point auto noauto,user,username=... 0 0
You don't need the username if it is the same on both machines. If you include this line in /etc/fstab, you can mount the share as a user. You can also use a credentials=<some file> option instead of username= to provide credentials (see man smbmount).
 
Old 10-30-2003, 08:38 AM   #5
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
Thank you. Will try all that tonight and report here...
L
 
Old 10-30-2003, 05:36 PM   #6
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
Hummm. I can definetly mount the share windows drive manually by typing:
Quote:
mount //[computer IP]/[share] /mnt/winNFS -o username=[username], password=[password]
This returns the error:
Quote:
609: session request to [computer IP] failed (Called name not present)
609: session request to 82 failed (Called name not present)
But still mount the drive!

However, with the following line in fstab:
Quote:
//[computer IP]/[share] /mnt/winNFS auto noauto,users,username=[username],password=[password] 0 0
When trying to mount, I have the error

Quote:
mount: special device //[computer IP]/[share] does not exist
returned.
Any idea someone? I would really like to have it mounted at boot up...
 
Old 10-31-2003, 05:24 AM   #7
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
Can someone help on the fstab entry? I would like to sort it out!
Thanks!

Last edited by laurentbon; 10-31-2003 at 10:19 AM.
 
Old 10-31-2003, 10:56 AM   #8
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
surely, someone knows, no?
 
Old 10-31-2003, 12:06 PM   #9
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Try specifying smbfs instead of auto.
 
Old 11-01-2003, 11:21 AM   #10
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
Thanks musrum, it worked. However, another problem now: I can't mount the device as a normal user. It returns this error:

smbmnt must be installed suid root for direct user mounts (1000,1000)

I am not really sure why as the permission on the file smbmnt is 755... Can you help please?
 
Old 11-01-2003, 12:10 PM   #11
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
The code in smbmnt checks who is running the command. So even though everybody has execute permissions, it still fails. All execute permision on the file means is that the kernel will load and start the image.

The problem is that smbmnt causes side effects that impact the entire system, something you normally want to restrict to root. So how do you allow an ordinary user to use smbmnt?

You set the suid and sgid bit on smbmnt - by the following:

chmod ug+s /usr/bin/smbmnt

If you now try:

ls -l /usr/bin/smbmnt

You will see

-rwsr-sr-x 1 root root 339455.......

This means that when smbmnt is run, the kernel will set the _effective_ uid and gid of the process to root and root. Voila, any user can run smbmnt.

Of course, the user must have permissions on the directory where he tries to mount the smb volume.
 
Old 11-02-2003, 03:13 AM   #12
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
Once again, very much thank you for such a thorough explanation musrum! Everyday you learn a new thing :-)

It is now working great and I can mount my window drive as a normal user in slack. Just one anomality: I have very large files on that drive (mpeg files of up to 5 gigas), however, when mounted in slack, the reported size levels out at 1.7 gb which happens to be slighly over 1 hour of video. 1h02sec (coincidence..)

Is there a limit on the size of files to access via NFS. If yes, can that be altered?
Thanks for you help again!
L
 
Old 11-03-2003, 10:52 AM   #13
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Original Poster
Rep: Reputation: 30
Another question: I would like to monitor the quality of the wireless link and the transfer rate.
Gnome comes with a small app to monitor wireless connection, but it refuses to worth on eth1 which is configured using iwconfig (it returns, no wireless connection), that is with the Prism Duette based pmcia card.
Is there a way to make it work?
Altenatively, is there another app I can use?
Thanks
L

EDIT: The app I am talking about is 'wireless link monitor' applet!

Last edited by laurentbon; 11-03-2003 at 11:56 AM.
 
  


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
NFS + Samba dvishloff Linux - Networking 1 09-29-2005 05:14 PM
Samba vs nfs rtaft Linux - Networking 1 12-23-2003 04:51 PM
samba /nfs feind Linux - Software 2 03-27-2003 11:02 PM
nfs gnome ganeshbic Linux - Networking 0 01-28-2003 07:00 AM
NFS with GNOME frkstein Linux - General 0 01-13-2003 04:12 PM


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

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