On 2024-12-13 11:32:16 +0100, Chris Hofstaedtler wrote: > * Vincent Lefevre <vinc...@vinc17.net> [241212 11:09]: > > On 2024-12-11 19:06:09 +0100, Jakub Wilk wrote: > > > * Chris Hofstaedtler <z...@debian.org>, 2024-11-14 20:57: > > > > As far as I can tell, the default for /dev/tty* is mode 0620, and the > > > > group owner being tty. No users should be part of that group. > > > > Is this enforced for the next Debian release? > > On some bookworm machine, the group of the /dev/pts files is > > sometimes "users": > > > > joooj:~> ll /dev/pts > > total 0 > > crw------- 1 vinc17 tty 136, 0 2024-12-12 10:55:23 0 > > crw------- 1 vinc17 users 136, 1 2024-12-12 10:32:26 1 > > crw--w---- 1 vinc17 users 136, 2 2024-12-12 10:32:34 2 > > crw--w---- 1 vinc17 users 136, 3 2024-12-12 10:55:23 3 > > crw------- 1 vinc17 users 136, 4 2024-12-12 10:32:19 4 > > crw------- 1 vinc17 users 136, 8 2024-12-12 10:32:19 8 > > c--------- 1 root root 5, 2 2024-11-24 18:10:02 ptmx > > How did you end up with this!?
I really don't know. > What have you done to your system? Nothing special. I've never changed anything related to tty. Just in case, /etc/login.defs has TTYGROUP tty TTYPERM 0600 And I don't see anything else that could be related to the group of tty devices. I could find that someone else also found that the tty device was owned by "users" (before he changed it): https://bbs.archlinux.org/viewtopic.php?id=43982 So there seems to be some reason. Note that after some tests, it appears that "users" occurs only with mosh and GNU Screen, not for direct connections with ssh. But I can't reproduce "users" on other machines. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)