OpenVZ Forum


Home » Mailing lists » Users » error on login
Re: error on login [message #10232 is a reply to message #10231] Tue, 13 February 2007 06:59 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

If you are curious, you can run strace on it (i.e. change 'mesg y' to
'strace -f -o /tmp/mesg-y-strace-out mesg y') and see what files it
tries to open etc.

Still, to me it looks like distro-specific problem. What distribution
are you using?

Mantelle Johan wrote:
> Yes in effect , my error is in /etc/bashrc :
>
> This line
>
> mesg y
>
> -> mesg: error: tty device is not owned by group `tty'
>
> Regards
> Mantelle johan
>
> -----Original Message-----
> From: users-bounces@openvz.org [mailto:users-bounces@openvz.org] On Behalf Of Kir Kolyshkin
> Sent: lundi 12 février 2007 15:11
> To: users@openvz.org
> Subject: Re: [Users] error on login
>
> 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@sanson cpbackup]# vzctl enter 101 entered into VE 101
>> mesg: error: tty device is not owned by group `tty'
>> root@gedeon [/]#
>>
>> root@gedeon [/]# ls -l /dev/tty
>> crw-rw-rw- 1 root tty 5, 0 Dec 15 2005 /dev/tty
>>
>> Any idea? thanks for your help.
>>
>>
>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: time wait bucket table overflow
Next Topic: [OT] EasyVZ: An OpenVZ management GUI under the GPL
Goto Forum:
  


Current Time: Tue Sep 10 11:59:33 GMT 2024

Total time taken to generate the page: 0.04686 seconds