OpenVZ Forum


Home » General » Support » [SOLVED]: CentOS 5.2 HN and VPS - man and less problems in VPS
[SOLVED]: CentOS 5.2 HN and VPS - man and less problems in VPS [message #34879 is a reply to message #34878] Tue, 10 February 2009 15:31 Go to previous messageGo to previous message
_sgb_ is currently offline  _sgb_
Messages: 3
Registered: February 2009
Junior Member
Using
strace less filename
I was able to figure out that there was an issue with the tty it was trying to use. Sure enough, an invalid tty existed:
-bash-3.2# ll /dev/tty
-rw-r--r-- 1 root root 16 Feb 10 15:15 /dev/tty

Removing this tty solved the problem with man and less, but it returned after a short time while I was using the VPS. I've since worked out where it came from. The mysql client creates it.

Quote:


-bash-3.2# rm /dev/tty
-bash-3.2# ls -l /dev/tty
ls: /dev/tty: No such file or directory
-bash-3.2# mysql -uroot -hlocalhost -p
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
-bash-3.2# ls -l /dev/tty
-rw-r--r-- 1 root root 16 Feb 10 15:19 /dev/tty




To prevent this issue from occuring, you need to create the /dev/tty node

Quote:


-bash-3.2# mknod -m 666 /dev/tty c 5 0
-bash-3.2# ll /dev/tty
crw-rw-rw- 1 root root 5, 0 Feb 10 15:23 /dev/tty



I've checked through the various template creation howtos, and this step is only mentioned in the Arch linux template creation page. In all honesty, I wouldn't be certain that it is required on other systems, as I have not run any other OS as a VPS.

Regards,

sgb
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem VPS Could Not Start Vps, Reason: vzquota
Next Topic: Public/Private IP Configuration
Goto Forum:
  


Current Time: Sat Jul 19 01:10:48 GMT 2025

Total time taken to generate the page: 0.06168 seconds