home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!dog.ee.lbl.gov!nosc!humu!pegasus!isle!bud
- From: bud@paradise.pegasus.com (Bud Carlson)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: Where to put /tmp ? Make / read-only ?
- Message-ID: <1992Jul20.184603.17177@paradise.pegasus.com>
- Date: 20 Jul 92 18:46:03 GMT
- References: <1992Jul16.183304.8487@cosy.sbg.ac.at> <1992Jul16.200548.5462@mp.cs.niu.edu> <1992Jul17.174609.7388@zia.aoc.nrao.edu>
- Organization: Paradise Isle Computing Services
- Lines: 38
-
- rmilner@zia.aoc.nrao.edu (Ruth Milner) wrote:
- >In article <1992Jul16.200548.5462@mp.cs.niu.edu> rickert@mp.cs.niu.edu (Neil Rickert) writes:
- >>In article <1992Jul16.183304.8487@cosy.sbg.ac.at> lendl@cosy.sbg.ac.at (Otmar Lendl) writes:
- >>>
- >>>I heard someone say that the root-partition should be mounted
- >>>read-only. If /tmp and /var are not on the
- >>>/ partition, and the /etc/{hosts|passwd|..} are maintained
- >>>by NIS in /var/yp, I can see no reason why not mount / as
- >>>read-only.
- >>
- >> Don't forget /etc/mtab, /etc/utmp, and the access times [and permissions]
- >> on your /dev special files.
- >
- >And the lpd socket /dev/lpd/printer .
- >
- >Plus all the files that get created/changed at boot time and therefore require
- >/etc to be writeable: ld.so.cache, ttys, motd, named.pid (if you run named),
- >xtab, syslog.pid, state, and so forth.
- >
- >Plus /etc/dumpdates if you do dumps. Not to mention that you'd have to do a
- >remount any time you wanted to change the system configuration by editing an
- >rc file, printcap, ttytab, resolv.conf, sendmail.cf, hosts.{equiv,lpd}, fstab,
- >shells, etc. etc. etc. Or modify root's environment by editing /{.profile,
- >.cshrc,.login,.rhosts}. Or put in a new kernel.
-
-
- Ruth forgot to mention that if you did have (and you will, I promise)
- to mount / to write files, you will have to use the `remount' option to
- the mount command. Since that option won't allow "mount -o remount,ro",
- you are stuck with your / filesystem mounted rw until you reboot therefore
- defeating the the whole purpose [or mess :-)].
-
- ...Bud
- --
- Bud Carlson * System Manager * Paradise Isle Computing * bud@isle.pegasus.com
-
-
- Serving coffee on aircraft causes turbulence.
-