[Soekris] mounting /dev in RAM in OpenBSD
Chris Cappuccio
chris at nmedia.net
Mon Dec 24 07:31:09 UTC 2007
Chris Cohen [kildau-ml at gmx.de] wrote:
>
> Openssh needs to write to some devices. (Don't know which ones..)
>
sshd wants to change permissions on /dev/ttyXX when you login so that only
you can write to it (or your group) - i originally dealt with this in
flashdist by making /dev/ttyXX symbolic links to the actual devices at
writeable (mfs) /var/run/dev/ttyXX.
unfortunately, sshd uses login() to write your login entries to utmp, which
fails if ttyname() decides that your device is not an actual character device.
this was a problem with flashdist, symbolic links caused ttyname() to fail
so utmp was always empty - and then i moved /dev to full mfs
More information about the Soekris-tech
mailing list