[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#231045: acknowledged by developer (Re: Bug#231045: ssh: fails to start as daemon -- runs fine with -D)



Debian Bug Tracking System wrote:

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,

Hi Colin,

Thanks!!! A simple and elegant solution. I'm extremely grateful for the assistance.

I'll see what I can find out about what messed up /dev/null, but in this case it may simply be our incompentence.

Cheers,
David




Reply to: