[SuSE Linux] /etc/exports - format for IP addresses in the file
I have two Syquest drives and a CDROM that I want to export from my SuSE 5.1 machine A (192.168.11.11) to another Linux machine B (192.168.11.50) on my network (192.168.11.0). I have DNS (intra.net - private domain name) set up in A with both Name->IP and IP->Name mappings. Initially, per man exports, I had the following line in /etc/exports: /ez1 192.168.11.*/255.255.255.0 # all machines on the 192.168.11.0 network However, on B I get "permission denied" message when I try to mount any of the exported file systems from A with above format. When I changed the format to that shown below, I am able to mount them. Although, I have solved my problem, I am curious as to what is the syntax for specifying a wildcard for IP address i.s.o domain names in /etc/exports TIA -- Arun Khan ======== File /etc/exports # See exports(5) for a description. # This file contains a list of all directories exported to other computers. # It is used by rpc.nfsd and rpc.mountd. /ez1 *.intra.net /ez2 *.intra.net /cdrom *.intra.net - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Arun K. Khan wrote:
I have two Syquest drives and a CDROM that I want to export from my SuSE 5.1 machine A (192.168.11.11) to another Linux machine B (192.168.11.50) on my network (192.168.11.0). I have DNS (intra.net - private domain name) set up in A with both Name->IP and IP->Name mappings.
Initially, per man exports, I had the following line in /etc/exports: /ez1 192.168.11.*/255.255.255.0 # all machines on the 192.168.11.0 network
However, on B I get "permission denied" message when I try to mount any of the exported file systems from A with above format. When I changed the format to that shown below, I am able to mount them.
Although, I have solved my problem, I am curious as to what is the syntax for specifying a wildcard for IP address i.s.o domain names in /etc/exports
ure you have to give the network address as well in exports? i'd guess /ez1 192.168.11.* hould do the trick. But I use hostnames as well. /cdrom install.forty.two(ro) arthurdent.forty.two(ro) /usr/src arthurdent.forty.two(rw, no_root_squash) 192.168.42.142(rw, no_root_squash) Jürgen -- ========================================== __ _ Jürgen Braukmann e-mail: brauki@cww.de | / / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | / /__/ / _ \/ // /\ \/ / ========================================== /____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
At 05:47 PM 08/20/98 +0200, Juergen Braukmann wrote:
Arun K. Khan wrote:
Initially, per man exports, I had the following line in /etc/exports: /ez1 192.168.11.*/255.255.255.0 # all machines on the 192.168.11.0
network
However, on B I get "permission denied" message when I try to mount any of the exported file systems from A with above format. When I changed the format to that shown below, I am able to mount them.
sure you have to give the network address as well in exports? i'd guess /ez1 192.168.11.*
Tried this trick. Get the same 'Permission denied' when I try to mount the exported file system. BTW, The man page states IP addresses should be in the format IP/NetMask (e.g. 192.168.11.*/255.255.255.0 unless I am misinterpreting the instructions). -- Arun Khan - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Arun K. Khan wrote:
[discussion about how to use wildcard ip's in /etc/exports just for the fun of discussion and higher education ;-)]
Tried this trick. Get the same 'Permission denied' when I try to mount the exported file system. BTW, The man page states IP addresses should be in the format IP/NetMask (e.g. 192.168.11.*/255.255.255.0 unless I am misinterpreting the instructions).
Hello Arun, you probably refer to this: wildcards Machine names may contain the wildcard characters * and ?. This can be used to make the exports file more compact; for instance, *.cs.foo.edu matches all hosts in the domain cs.foo.edu. However, these wildcard characters do not match the dots in a domain name, so the above pattern does not include hosts such as a.b.cs.foo.edu. IP networks You can also export directories to all hosts on an IP (sub-) network simultaneously. This is done by specifying an IP address and netmask pair as address/netmask. Unfortunately, this is not part of the examples. After pressing the send button yesterday, I thought of one thing: /opt 192.168.42.* (rw) is probably the same "nonsense" like /opt 192.168.42.*/155.255.255.0 (rw) because you can have "mixed" networks (something between class C and B, like our job's 255.255.252.0 netmask) with 1022 host adresses. Both examples would fail. Reading this part of the man page, I interpret now: /opt 192.168.42.42/255.255.255.0 (rw) or probably /opt 192.168.42.42/24 (rw) to do the job. this would also work for my job's 22 bit netmask. one EXAMPLE HOST and the ENTIRE NETWORK. Are you still playing with this????? Jürgen -- ========================================== __ _ Jürgen Braukmann e-mail: brauki@cww.de | / / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | / /__/ / _ \/ // /\ \/ / ========================================== /____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi everybody, I have a problem with my ZIP drive on the parallel port. It sometimes locks up and there is no way to mount it or access it with mtools. My entry in fstab looks like: /dev/sda4 /mnt/zip vfat rw,noauto,user 0 0 and in mtools.conf: drive z: file="/dev/sda4" exclusive It happens seemingly by random when I access it with either mtools or mount and then I can't mount or unmount anything anymore. Does anybody have an idea? Richard --- Washington University in St. Louis - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Fri, 21 Aug 1998, Richard Georg Hennig wrote:
Hi everybody,
I have a problem with my ZIP drive on the parallel port. It sometimes locks up and there is no way to mount it or access it with mtools. My entry in fstab looks like:
/dev/sda4 /mnt/zip vfat rw,noauto,user 0 0
and in mtools.conf:
drive z: file="/dev/sda4" exclusive
It happens seemingly by random when I access it with either mtools or mount and then I can't mount or unmount anything anymore. Does anybody have an idea?
Richard --- Washington University in St. Louis
I have had on and off problems with the parallel port zip too. It locks up at will. /etc/mtab probably gets locked. Also do a ps and see if you have an fdisk process dormant. Sorry I can't give you any help. Rebboting helps though, but it is very inconvinent. Ramin Sina - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
This from doing Iomega tech support for the past year: Tho' Iomega doesn't "formally" support the drives on *nix flavors (and being a complete newbie to Linux, I couldn't begin to advise proper config), you might check the parallel port mode in the system BIOS....ECP mode is usually incompatible with PP Zips (as it is with most parallel port removeable media storage devices)....just knock it down a notch to EPP mode and you'll at least eliminate one common reason for "losing" the drive.
I have a problem with my ZIP drive on the parallel port. It sometimes locks up and there is no way to mount it or access it with mtools.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
I also had problems with exports. It worked for me without the '*' (192.168.11.). Juergen Braukmann schrieb:
Arun K. Khan wrote:
[discussion about how to use wildcard ip's in /etc/exports just for the fun of discussion and higher education ;-)]
Tried this trick. Get the same 'Permission denied' when I try to mount the exported file system. BTW, The man page states IP addresses should be in the format IP/NetMask (e.g. 192.168.11.*/255.255.255.0 unless I am misinterpreting the instructions).
Hello Arun,
you probably refer to this:
wildcards Machine names may contain the wildcard characters * and ?. This can be used to make the exports file more compact; for instance, *.cs.foo.edu matches all hosts in the domain cs.foo.edu. However, these wildcard characters do not match the dots in a domain name, so the above pattern does not include hosts such as a.b.cs.foo.edu.
IP networks You can also export directories to all hosts on an IP (sub-) network simultaneously. This is done by specifying an IP address and netmask pair as address/netmask.
Unfortunately, this is not part of the examples. After pressing the send button yesterday, I thought of one thing:
/opt 192.168.42.* (rw) is probably the same "nonsense" like /opt 192.168.42.*/155.255.255.0 (rw) because you can have "mixed" networks (something between class C and B, like our job's 255.255.252.0 netmask) with 1022 host adresses. Both examples would fail.
Reading this part of the man page, I interpret now: /opt 192.168.42.42/255.255.255.0 (rw) or probably /opt 192.168.42.42/24 (rw) to do the job. this would also work for my job's 22 bit netmask. one EXAMPLE HOST and the ENTIRE NETWORK.
Are you still playing with this?????
Jürgen
-- ========================================== __ _ Jürgen Braukmann e-mail: brauki@cww.de | / / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | / /__/ / _ \/ // /\ \/ / ========================================== /____/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
-- Guenter Zoechbauer EDV-Dienstleistung - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (6)
-
arunkhan@xnet.com
-
brauki@cityweb.de
-
gracchus@inficad.com
-
rhennig@hbar.wustl.edu
-
sina@glue.umd.edu
-
zoechi@z-edv.co.at