无法写入其他用户“您已关闭写入权限”

Ste*_*ins 6 linux bash centos write

出于某种原因,我无法在我的系统上写信给其他用户。

[root@hostname ~]# write
write: you have write permission turned off.
[root@hostname ~]# mesg y
[root@hostname ~]# mesg
is y
[root@hostname ~]# write
write: you have write permission turned off.
Run Code Online (Sandbox Code Playgroud)

还需要启用/纠正什么才能使其工作?

Bil*_*hor 0

当以 root 身份运行mesg禁用(返回n)时,我得到与您相同的错误。运行该命令mesg y使我能够运行写入。运行时root我可以向已禁用的用户写入数据mesg,但作为非 root 无法执行此操作。

有多个实用程序提供该write功能。他们所有人都需要能够写入终端。但是,当您以权限运行时,root应该不是问题。