> At 19:06 3/19/00 +0300, Michael Ju. Tokarev wrote:
> >One small(?) relatted question: is it possible to mount / readonly?
> >At least with mount command itself, it seemed to be impossible, as
> >mount tries to modify /etc/mtab, and initscripts directs it to do so;
>
> there are a few chunks of the file space you need to have writable,
> from memory the list is:
>
> /etc
> /var
> /tmp (can always be a symlink to /var/tmp)
> /home (unless you don't have any users... i.e. kiosk machines)
>
> beyond that everything *should* be able to be ro, iirc.
>
> personally I'd like to get /etc out of that list, mtab is just one place
> I ran into when I tried this a long time ago.
/etc has lots of stuff particular to the running machine (I discovered
this when booting 'diskless' workstations), so it can't usefully be shared.
The other reason I see (avoiding hackers) could probably he handled with
initrd & by creating a small ram disk. It would be read/write, but then it
would get refreshed after boot.
Come to think of it, there's probably no reason mtab can't be a symlink to
somewhere in /var.
--
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null