MESG(1) | Корисничке наредбе | MESG(1) |
НАЗИВ
mesg - приказује (или не приказује) поруке од других корисника
УВОД
mesg [опција] [n|y]
ОПИС
Помагало mesg корисник позива да контролише приступ писању који други имају терминалном уређају који је придружен са стандардним излазом грешке. Ако је приступ писању дозвољен, онда програми као што су talk(1) и write(1) могу приказати поруке на терминалу.
Traditionally, write access is allowed by default. However, as users become more conscious of various security risks, there is a trend to remove write access by default, at least for the primary login shell.
The initial permissions for the terminal are set by login(1) according to TTYPERM and TTYGROUP from /etc/login.defs. The default is mode 0620 if a tty group is used, and 0600 without the group. The default tty group name is "tty".
To ensure that your ttys are set in a portable and independent manner from system settings, mesg should be executed in your login scripts.
mesg modifies the write permissions for a group on the current terminal device. Since version 2.41, mesg can no longer be compiled to make the terminal writable for others and strictly modifies only group permissions. The usual setup is to use a "tty" group and add relevant users to this group. Alternatively, a less secure solution is to set utilities like write(1) or wall(1) to setgid for the "tty" group.
Помагало mesg тихо излази са стањем грешке 2 ако се не изврши на терминалу. У овом случају извршавање mesg је бесмислено. Опција линије наредби --verbose приморава „mesg“ да испише упозорење у овој ситуацији. Ово понашање је уведено у издању 2.33.
АРГУМЕНТИ
n
y
Ако нису дати аргументи, mesg приказује тренутно стање поруке на излазу стандардне грешке.
ОПЦИЈЕ
-v, --verbose
-h, --help
-V, --version
ИЗЛАЗНО СТАЊЕ
mesg излази са једном од следећих вредности:
0
1
>1
ДАТОТЕКЕ
/dev/[pt]ty*, /dev/pts/[0-9]*
ИСТОРИЈАТ
mesg (I) се појављује у UNIX упутству за програмере. Користи се за преокретање тренутног стања без аргумената пре издањаа 7 AT&T UNIX-а.
ПОГЛЕДАЈТЕ ТАКОЂЕ
ПРИЈАВЉИВАЊЕ ГРЕШАКА
For bug reports, use the issue tracker https://github.com/util-linux/util-linux/issues.
ДОСТУПНОСТ
Наредба mesg је део пакета „util-linux“ који се може преузети са Архиве Линукс кернела https://www.kernel.org/pub/linux/utils/util-linux/.
2025-03-29 | util-linux 2.41 |