[Users] error on login

Kir Kolyshkin kir at openvz.org
Mon Feb 12 09:10:38 EST 2007


This does not looks like something specific to OpenVZ. Still, let me guess.

"tty device" here is not /dev/tty, but either /dev/ttyp* and /dev/ptyp*, 
or some entry under /dev/pts.

"mesg" is a program to enable/disable receiving messages from other 
users. It is probably called from one of user's login scripts 
(/etc/bashrc, /etc/bash_login, /etc/profile or something like that, or 
their ~/. analogs). This programs is _possibly_ SGID to group tty (run 
'ls -l $(which mesg)' to check that), and tries to change the mode of 
one or several above mentioned files. Since files doesn't belong to 
group tty, mesg complains.

This problem is most probably the problem of a given distribution.

Regards,
Kir.

José David Bravo Álvarez wrote:
> [root at sanson cpbackup]# vzctl enter 101
> entered into VE 101
> mesg: error: tty device is not owned by group `tty'
> root at gedeon [/]#
>
> root at gedeon [/]# ls -l /dev/tty
> crw-rw-rw- 1 root tty 5, 0 Dec 15 2005 /dev/tty
>
> Any idea? thanks for your help.
>



More information about the Users mailing list