Saturday, 5 February 2011

/dev/null is not a character device!.

ОС: Gentoo, OpenVZ CT.

Ошибка:
/etc/init.d/ssh start
/dev/null is not a character device!.

Почему-то /dev/null оказался обычным файлом:
root@pini-pini:/# stat /dev/null
File: `/dev/null'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 37h/55d Inode: 475137 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2011-02-05 23:21:15.000000000 +0300
Modify: 2011-02-05 23:51:55.000000000 +0300
Change: 2011-02-05 23:51:55.000000000 +0300


Создал его заново:
rm /dev/null
mknod /dev/null c 1 3

После этого sshd заработал:
/etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.