Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mesg: ttyname failed: no such device

Im working on LFS, and I finished the process of compiling, and came to the part of entering the cheroot Environment, with the code provide.

But I’m getting this error:mesg: ttyname failed: no such device

How can I resolve this?

like image 489
Lukas.S Avatar asked Jan 24 '26 23:01

Lukas.S


1 Answers

There is a mesg n command in you /root/.profile or so. Just comment it out or ensure it is run only if running on a tty with test -t 0 && mesg n.

like image 85
Étienne Bersac Avatar answered Jan 27 '26 16:01

Étienne Bersac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!