LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 820|回复: 1

求助:/dev/console问题

[复制链接]
发表于 2010-8-20 16:48:17 | 显示全部楼层 |阅读模式
我在fedora13安装好了beep后,发现在root权限下能正常运行,但是在普通用户权限下运行时出现:
$ beep
Could not open /dev/console for writing.
open: Permission denied
后来试过好几种方法都没有解决,到底怎么回事?
发表于 2010-8-20 20:26:55 | 显示全部楼层
The  short  story  is,  the
       kernel checks that either:

       - you are the superuser

       - you own the current tty

       What  this means is that root can always make beep work (to the best of
       my knowledge!), and that any local user can make beep work, BUT a  non-
       root  remote user cannot use beep in it’s natural state.  What’s worse,
       an xterm, or other x-session counts, as far as the kernel is concerned,
       as ’remote’, so beep won’t work from a non-priviledged xterm either.  I
       had originally chalked this up to a bug, but there’s actually nothing I
       can  do  about  it,  and it really is a Good Thing that the kernel does
       things this way.  There is also a solution.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表