Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-28-2005, 03:27 PM
|
#1
|
Member
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68
Rep:
|
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..
|
|
|
02-28-2005, 04:16 PM
|
#2
|
Member
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174
Rep:
|
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
|
|
|
02-28-2005, 05:06 PM
|
#3
|
Member
Registered: Feb 2005
Distribution: Debian 3.x & Fedora Core 3, Debie on IBM Thinkpad
Posts: 68
Original Poster
Rep:
|
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
|
|
|
03-01-2005, 02:28 PM
|
#4
|
Member
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:35 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
|
|