All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolinux.com>
To: John Covici <covici@ccs.covici.com>
Cc: Neil Brown <neilb@cse.unsw.edu.au>, linux-kernel@vger.kernel.org
Subject: Re: strange nfs behavior in 2.2.18 and 2.4.0-test12
Date: Thu, 21 Dec 2000 17:15:25 -0700 (MST)	[thread overview]
Message-ID: <200012220015.eBM0FPJ20543@webber.adilger.net> (raw)
In-Reply-To: <Pine.LNX.4.21.0012211828510.840-100000@ccs.covici.com> "from John Covici at Dec 21, 2000 06:35:30 pm"

John Covici writes:
> Here is my /etc/exports
> 
> / ccs2(rw,no_root_squash)
> /usr ccs2(rw,no_root_squash)
> /usr/src ccs2(rw,no_root_squash)
> /home ccs2(rw,no_root_squash)
> /hard1 ccs2(rw,no_root_squash)
> /hard2 ccs2(rw,no_root_squash)
> /hard3 ccs2(rw,no_root_squash)
> /hard4 ccs2(rw,no_root_squash)
> /usr/bbs ccs2(rw,no_root_squash)

According to your fstab, these are all separate devices, so they should
export OK.  You trust this "ccs2" machine a lot, however...  Exporting
root with no_root_squash is a big security hole.

> # /etc/fstab: static file system information.
> #
> # <file system>	<mount point>	<type>	<options>			<dump>	<pass>
> /dev/hda2	/		ext2	defaults,errors=remount-ro 1	1
> /dev/hdc2	none		swap	sw			0	0
> /dev/hdc4	none		swap	sw			0	0

Having two swaps configured like this on the same disk is a net performance
loss.  If anything, you should set one of them to have a lower priority
(via pri=), so that it will only be used if the first one is full.

> /dev/hdb7	none		swap	sw			0	0
> proc		/proc		proc	defaults		0	0
> /dev/fd0	/floppy		auto	defaults,user,noauto	0	0
> /dev/cdrom	/cdrom		iso9660	defaults,ro,user,noauto	0	0
> /dev/hdc3	/usr		ext2	rw			1	2
> /dev/hdb6	/usr/bbs	ext2	rw			1	2
> /dev/hda3	/usr/src	ext2	rw			1	2
> /dev/hda4	/home		ext2	rw			1	3
> 
> and here are mounts executed out of /etc/rc.local
> 
> mount -t vfat /dev/hdb1 /hard2
> mount -t vfat /dev/hdb5 /hard4
> mount -t vfat /dev/hdc1 /hard3
> mount -t vfat /dev/hda1 /hard1

Out of curiosity, why not just put them into /etc/fstab?

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-12-22  0:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-21 18:37 strange nfs behavior in 2.2.18 and 2.4.0-test12 John Covici
2000-12-21 19:01 ` Charles Wilkins
2000-12-21 22:14 ` Neil Brown
2000-12-21 23:16   ` John Covici
2000-12-21 23:21     ` Neil Brown
2000-12-21 23:35       ` John Covici
2000-12-22  0:15         ` Andreas Dilger [this message]
2000-12-22  0:42           ` John Covici

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200012220015.eBM0FPJ20543@webber.adilger.net \
    --to=adilger@turbolinux.com \
    --cc=covici@ccs.covici.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.