Bug#369964: ssh: fails to run as daemon if /dev/null is a regular file (daemon() failed: Success)
Package: ssh
Version: 1:3.8.1p1-8.sarge.4
Severity: grave
Justification: renders package unusable
The sshd daemon fails to start if /dev/null is a regular file.
You can start sshd in debug mode (sshd -d) but when you try to start it
normally it fails to go to background.
The program logs the following error:
daemon() failed: Success
This is a missleading report.
I know that /dev/null should be a device and I don't know how it became
a regular file, but the daemon shouldn't be affected or at least
provide a better description of the problem.
I spent hours to solve it and I found that this problem is more or less
common just look for:
sshd daemon failed Success
using Google.
BTW the /etc/init.d/ scripts rely on /dev/null so I think the first
script should verify that /dev/null is usable.
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-k7
Locale: LANG=es_AR, LC_CTYPE=es_AR (charmap=ISO-8859-1) (ignored: LC_ALL set to es_AR)
Versions of packages ssh depends on:
ii adduser 3.63 Add and remove users and groups
ii debconf 1.4.30.13 Debian configuration management sy
ii dpkg 1.10.28 Package maintenance system for Deb
ii libc6 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
ii libpam-modules 0.76-22 Pluggable Authentication Modules f
ii libpam-runtime 0.76-22 Runtime support for the PAM librar
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libssl0.9.7 0.9.7e-3sarge1 SSL shared libraries
ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra
ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime
-- debconf information excluded
Reply to: