ENOTTY (Inappropriate ioctl for device) для программы less [message #29994] |
Mon, 05 May 2008 00:06 |
|
Всем привет !
есть VZ ферма Linux xxx 2.6.18-028stab053 #10 SMP Tue Apr 1 15:23:12 VLAST 2008 i686 Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz GenuineIntel GNU/Linux
с VPS'ами на базе gentoo.
Несколько работают отлично, новый - не совсем.
Например, команда man man завершается:
Error executing formatting or display command.
System command (cd "/usr/share/man" && (echo ".ll 9.7i"; echo ".nr LL 9.7i"; echo ".pl 1100i"; /bin/bzip2 -c -d '/usr/share/man/man1/man.1.bz2'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -Tascii -c -mandoc | /usr/bin/less) exited with status 1.
No manual entry for man
Команда less anyfile не даёт полистать содержимое, выходит по (последние две строчки strace less anyfile):
ioctl(3, SNDCTL_TMR_STOP or TCSETSW, {B1000000 -opost isig icanon -echo ...}) = -1 ENOTTY (Inappropriate ioctl for device)
exit_group(1)
Данное поведение наблюдается при заходе и по vzctl enter VPSid и по ssh
Данный VPS имеет baselayut2, включенные квоты.
Содержимое /proc/mounts:
simfs / simfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
Как подскажите избавиться от этого ENOTTY ?
VPS имеет номер <100, это может влиять ?
|
|
|
Re: ENOTTY (Inappropriate ioctl for device) для программы less [message #30324 is a reply to message #29994] |
Wed, 21 May 2008 10:49 |
piavlo
Messages: 159 Registered: January 2007
|
Senior Member |
|
|
proverte vnutri VE permitions /dev/tty i /dev/tty1
Eto to sho imejetsya u menya s udev vnutri VE
drwxr-xr-x 5 root root 360 May 9 10:26 .
drwxr-xr-x 21 root root 4096 May 9 10:26 ..
drwxr-xr-x 6 root root 140 May 9 10:26 .udev
crw-r--r-- 1 root root 5, 1 Feb 6 12:00 console
lrwxrwxrwx 1 root root 13 May 9 10:26 fd -> /proc/self/fd
prw------- 1 root root 0 May 9 10:26 initctl
srw-rw-rw- 1 root root 0 May 9 10:26 log
crwxrwxrwx 1 root root 1, 3 Feb 6 12:00 null
crw-rw-rw- 1 root tty 5, 2 May 21 13:43 ptmx
drwxr-xr-x 2 root root 0 May 9 10:26 pts
crw-r--r-- 1 root root 1, 8 Feb 6 12:01 random
drwxrwxrwt 2 root root 40 May 9 10:26 shm
lrwxrwxrwx 1 root root 4 May 9 10:26 stderr -> fd/2
lrwxrwxrwx 1 root root 4 May 9 10:26 stdin -> fd/0
lrwxrwxrwx 1 root root 4 May 9 10:26 stdout -> fd/1
crw-rw-rw- 1 root tty 5, 0 Jan 31 01:33 tty
crw-r--r-- 1 root root 4, 1 Feb 6 12:00 tty1
crw-r--r-- 1 root root 1, 9 Feb 6 12:01 urandom
V /etc/rc.conf(baselayout-2) or /etc/conf.d/rc(baselayout-1)
RC_DEVICES="udev"
RC_DEVICE_TARBALL="yes"
A minimal devices.tar.bz2
# tar jtvf /vz/private/104/lib64/udev/state/devices.tar.bz2
crw-r--r-- 0/0 4,1 2008-02-06 12:00 tty1
crw-r--r-- 0/0 5,1 2008-02-06 12:00 console
crw-rw-rw- 0/5 5,0 2008-01-31 01:33 tty
crw-r--r-- 0/0 1,9 2008-02-06 12:01 urandom
crw-r--r-- 0/0 1,8 2008-02-06 12:01 random
crw-rw-rw- 0/0 1,3 2008-02-06 12:00 null
|
|
|