Subject: Re: sshd and read-only filesystem
To: None <p99dreyf@criens.u-psud.fr>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-kern
Date: 07/11/2001 22:31:11
On Wed, Jul 11, 2001 at 09:12:43PM +0200, Emmanuel Dreyfus wrote:
> >   | Interesting... Writing to writable files on a readonly filesystem is
> >   | dissallowed.
> > This shouldn't be surprising, writing to a device is not writing to the
> > filesystem that contains the inode for the device, it is writing to
> > wherever the device wants the data to be put (same for /dev/null /dev/tty
> > /dev/anything else).
> 
> Maybe the solution would be to allow changing the owner like we allow
> changing the mtime? (cf below)
> 
> >   | What happens to the mtime of the device? 
> > That's on the read only filesystem, so that can't be touched.
> 
> It is changed, as is /dev/console mtime changed when you type on the
> console with a read-only /dev.
> 
> But how is it able to change the mtime??? Shouldn't this be read-only?

I think it is. See my "w is showing idle time > uptime" thread on
tech-userlevel.

Regards,
	Ignatios