LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: yelusiku

[已解决]gentoo下sudo运行X程序的问题

[复制链接]
发表于 2007-6-21 23:30:20 | 显示全部楼层
Post by diony
为什么我在用其他发行版的时候没有遇到过这个问题?
看你的/etc/sudoers
man sudoers
       env_reset   
If set, sudo will reset the environment to only contain the following variables: HOME, LOGNAME,
                   PATH, SHELL, TERM, and USER (in addition to the SUDO_* variables).  Of these, only TERM is
                   copied unaltered from the old environment.  The other variables are set to default values (pos-
                   sibly modified by the value of the set_logname option).  If sudo was compiled with the
                   SECURE_PATH option, its value will be used for the PATH environment variable.  Other variables
                   may be preserved with the env_keep option.
回复 支持 反对

使用道具 举报

发表于 2007-6-22 00:40:41 | 显示全部楼层
that's it!
thanks.
  1. Defaults        env_reset
复制代码
其他发行版默认都没有这个设置。
回复 支持 反对

使用道具 举报

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

本版积分规则

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