LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-28-2005, 03:27 PM   #1
nevarlen
Member
 
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68

Rep: Reputation: 15
Help with drive mapping from linux to linux over a network


Hi,
I tried to research on the net but I guess everybody is trying to map windose drives onto linux.. So, I need to cover some some basics while mountin a network drive between linuxes.
If I try "mount 10.0.0.1:/ /PM" I get access denied errors which is obvious since I am try to connect to a secure server..
Where do I supply username and password for the server I am trying to connect to?
Do I need samba?
Also, remote server has 2 mounts that I want to map to, they are hda and scsi, could I map to both of them at the same time, meaning that can I see both the drives from my PM directory?
Thanks in advance..
 
Old 02-28-2005, 04:16 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
If you are going from linux to anything but windows why would you need SAMBA? (a rhetorical question). If you want to remote mount you will require a proper NFS setup. Otherwise you are into configuring ssh, or vpn, or krb5, or X, or telnet, or ftp, or vserver, or AFS, or (I'm sure I missed something).

Isn't linux cool?

nz
 
Old 02-28-2005, 05:06 PM   #3
nevarlen
Member
 
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68

Original Poster
Rep: Reputation: 15
Yes, I think linux is very cool...If I can only leave the damn windose world...
Back to my question:::
Since "mount 10.0.0.1:/ /PM" does not work coz I get " failed, reason given by server: Permission denied"::
How would I configure the destination server to accept my mounting attempts.
Thanks again
 
Old 03-01-2005, 02:28 PM   #4
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Since NFS operates on the client/server principal, one machine will be the NFS server the other the client. You will need to edit /etc/exports /etc/hosts.allow and /etc/hosts.deny on the server to allow a mount from the client.
something like:

[michael@blacky ~]$ cat /etc/exports
/usr/archive 192.168.1.0/255.255.255.0(rw,insecure,sync,no_wdelay,insecure_locks,no_root_squash)
/home 192.168.1.0/255.255.255.0(rw,insecure,sync,no_wdelay,insecure_locks,no_root_squash)
/opt 192.168.1.0/255.255.255.0(rw,insecure,sync,no_wdelay,insecure_locks,no_root_squash)

and:

[michael@blacky ~]$ cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

portmap: 192.168.1.0/255.255.255.0
lockd: 192.168.1.0/255.255.255.0
rquotad: 192.168.1.0/255.255.255.0
mountd: 192.168.1.0/255.255.255.0
statd: 192.168.1.0/255.255.255.0

and:

[michael@blacky ~]$ cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

NOTE: These are files located on a secure network and the flags in /etc/exports are MY own preferences in light of the nature of MY network. NFS is inherently INSECURE so know what you are setting up. I only mount NFS like this when I am doing maintenance on this particular server.
You then have to set up a mount point on the client, start the portmapper, NFS, and mount the server volume either with - mount 192.168.1.40:/home -t nfs /mnt/home (or whaterver is the least confusing to you) or/and make /etc/fstab entries to mount the volume at boot.

I would google up tldp.org and get the Linux NFS-HOWTO before proceeding.

nz
 
  


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
Mapping a windows drive to a Linux box tbthorpe Linux - Networking 6 02-21-2005 02:48 PM
Mapping a network drive mikepengelly Linux - Networking 1 08-31-2004 04:27 PM
mapping windows network drives on a linux host kopite2012 Linux - Newbie 2 04-30-2004 11:00 AM
Mapping drive from Windows to Linux rkingndayton Linux - Networking 1 10-15-2003 11:24 AM
Mapping a network drive in linux jmarsh Linux - Networking 11 12-13-2002 12:08 PM

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

All times are GMT -5. The time now is 05:35 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