LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-02-2012, 08:04 AM   #1
fbmd
LQ Newbie
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 10

Rep: Reputation: Disabled
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
 
Old 11-03-2012, 10:48 AM   #2
hotchili
Member
 
Registered: Sep 2009
Location: Germany
Distribution: slackware64-current
Posts: 89

Rep: Reputation: 32
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

Last edited by hotchili; 11-03-2012 at 10:53 AM.
 
Old 12-06-2012, 02:29 PM   #3
fbmd
LQ Newbie
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hotchili View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Strange keyboard behavior - funny characters on the console montyny Linux - Newbie 2 02-22-2012 07:09 AM
How to switch keyboard layout in virtual console in Ubuntu 8.04? swingnjazz Linux - Newbie 1 08-03-2008 08:57 AM
Strange keyboard problems RHEL AS 3 update 6 tongzhi Red Hat 1 05-25-2008 03:20 PM
FreeBSD 5.4: Keyboard problems in console Ephracis *BSD 1 04-20-2006 01:32 AM
strange screen when switch back from KDE to virtual console vu63 Linux - General 2 10-07-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration