Bug#705056: /etc/default/devpts instructions to set "mesg n" by default don't work

Dmitry Bogatov KAction at debian.org
Thu Jul 25 20:07:02 BST 2019

control: tags -1 +moreinfo +unreproducible

[2013-04-09 17:13] Jakub Wilk <jwilk at debian.org>
> Package: initscripts,libc6
> /etc/default/devpts reads:
> # Set to 600 to have `mesg n' be the default
> But this doesn't really work. Even if you mount /dev/pts with mode=600, 
> your pty devices will end up with 620 permissions. This is because 
> well-behaved software calls grantpt(), which changes the device 
> permissions.
> Either grantpt() should be fixed not to touch permissions if /dev/pts is 
> a devpts fs (as it did in the past[0]) or initscripts should be fixed 
> not to claim you can have "mesg n" by default.

I just tried this -- remounted /dev/pts with mode=600 and started
dvtm(1) and stterm(1). This resulted in /dev/pts/{0,1} with $USER:tty,
600. So to be `TTYMODE' seems to work.

Did I miss something?
Note, that I send and fetch email in batch, once in a few days.
Please, mention in body of your reply when you add or remove recepients.

More information about the Debian-init-diversity mailing list