On Wed, Feb 04, 2004 at 08:34:57PM -0800, David Liontooth wrote:
Colin Watson wrote:
Please install the strace package and run 'strace -f sshd'. (I have a
guess, but we shall see ...)
My guess was right:
[...]
open("/dev/null", O_RDWR) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=7242, ...}) = 0
close(3) = 0
[...]
Your /dev/null has somehow become a regular file instead of a character
device, which means that the daemon() library call fails. Fix that. As
root:
rm /dev/null
mknod -m 666 /dev/null c 1 3
If you could track down what broke /dev/null and file a bug on it if
it's a Debian package, then that would be helpful.
Cheers,