Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, the files /dev/pts/* do not belong to group `tty'. The problem is, that some BSD tools like mesg, write and talk expect that. Therefore "mesg y" does not work. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    mzq
    mzq is offline
    Just Joined!
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    26

    /dev/pts/* files not group tty


    Hello,

    the files /dev/pts/* do not belong to group `tty'. The problem is, that some BSD tools like mesg, write and talk expect that.
    Therefore "mesg y" does not work. (mesg: error: tty device is not owned by group `tty')
    After I did chgrp, everything was alright.
    But after restarting, everything is as before. I think it has to do with udev.
    Asking my best friend Google did not help.

    Thanks in advance.

    EDIT: I do not know whether this is the right place for this thread, but I'm running Gentoo.

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    If it's on a Gentoo box, this is the right forum .

    If that makes it work, then make a new initscript. Save the following file as /etc/init.d/fix_tty (you need to be root):
    Code:
    #!/sbin/runscript
    # Copyright 1999-2005 Gentoo Foundation
    # Distributed under the terms of the GNU General Public License v2
    
    start() {
        ebegin "Fixing TTY Ownership"
        chown tty /dev/pts/*
        eend $?
    }
    Then run (also as root):
    Code:
    chmod +x /etc/init.d/fix_tty
    rc-update add fix_tty default
    This will cause the script to run on startup every time.

  3. #3
    mzq
    mzq is offline
    Just Joined!
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    26
    Thank you very much for this answer.
    But these pts files are created dynamically. That means that this script should run every time....

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Ah. Touche. Well, I can find very little on Google to do this. Maybe someone else has an idea?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •