LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Strange keyboard console problems on virtual Slackware (http://www.linuxquestions.org/questions/slackware-14/strange-keyboard-console-problems-on-virtual-slackware-4175435266/)

fbmd 11-02-2012 08:04 AM

Strange keyboard console problems on virtual Slackware
 
Hi,

I run Slackware 13 in a virtual container at some vserver host.

I do encounter some strange behaviour on the console via SSH:
  • `less` doesn't work. It quits immediately, without an error message. Editors as `nano` do work.
  • `passwd` does not work. It immediately returns the following:

Code:

$ passwd
Changing password for USER
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
Bad password: too short.  Try again.
Bad password: too short.  Try again.
Bad password: too short.  Try again.
Bad password: too short.  Try again.
Bad password: too short.  Try again.
The password for resgames is unchanged.

Some web searching brought up that this might be a problem with the /dev file system. It looks like this:

Code:

ls -l /dev/
total 8
lrwxrwxrwx 1 root root      4 2011-01-07 19:24 X0R -> null
drwxr-xr-x 2 root root    160 2012-07-10 22:57 char/
lrwxrwxrwx 1 root root    11 2011-01-07 19:24 core -> /proc/kcore
lrwxrwxrwx 1 root root    13 2011-01-07 19:24 fd -> /proc/self/fd/
crw-rw-rw- 1 root root  1, 7 2012-07-10 22:57 full
prw------- 1 root root      0 2008-08-31 01:19 initctl|
-rw-r--r-- 1 root root    30 2012-07-10 22:57 kmsg
srw-rw-rw- 1 root root      0 2012-07-10 22:57 log=
crw-rw-rw- 1 root root  1, 3 2012-07-10 22:57 null
crw-rw---- 1 root root 108, 0 2008-10-09 13:37 ppp
crw-rw-rw- 1 root tty    5, 2 2012-11-02 13:00 ptmx
drwxr-xr-x 2 root root      0 2012-07-10 22:57 pts/
crw-rw-rw- 1 root root  1, 8 2012-07-10 22:57 random
drwxr-xr-x 2 root root    40 2008-09-23 01:39 shm/
lrwxrwxrwx 1 root root    15 2011-01-07 19:24 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root    15 2011-01-07 19:24 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root    15 2011-01-07 19:24 stdout -> /proc/self/fd/1
-rw-r--r-- 1 root root    14 2012-11-02 12:43 tty
crw-rw-rw- 1 root root  1, 9 2012-07-10 22:57 urandom
crw-rw-rw- 1 root root  1, 5 2012-07-10 22:57 zero

To me these look like problems reading from the keyboard.

I'm currently at the end of my wits. Any ideas how to tackle this?

Thanks,
fbmd

hotchili 11-03-2012 10:48 AM

Permissions of /dev/tty look weird, thats how it looks here (slackware64-current) and on my debian vserver:
Code:

crw-rw-rw- 1 root tty 5, 0 Nov  3 16:27 /dev/tty
Maybe try (worked fine here in a vm, but better have backups)
Code:

# rm /dev/tty
# mknod -m 0666 /dev/tty c 5 0
# chown root.tty /dev/tty


fbmd 12-06-2012 02:29 PM

Quote:

Originally Posted by hotchili (Post 4821431)
Permissions of /dev/tty look weird [...]

Code:

# rm /dev/tty
# mknod -m 0666 /dev/tty c 5 0
# chown root.tty /dev/tty


THANK YOU - that was a life saver!

After months of annoying behaviour, this fixed it, and I can use my machine again to its full extent.

I suspect I must have been copying things around, not honouring char device nodes.

Thanks again!

-fbmd


All times are GMT -5. The time now is 11:31 PM.