偶试图按照网页上的教程,想实现Firestarter开机自动启动,为此修改了/etc/sudoers
修改内容为:lmh ALL= NOPASSWD: /usr/bin/firestarter
说明:“lmh"是我的用户名
错误症状:sudo: /etc/sudoers is mode 0644, should be 0440
好像是权限错误什么的,但不知如何修正,请各位高手高手高高手赐教。
解决方法见8楼
[已解决]求救:/etc/sudoers错误,导致sduo命令无法使用
- 大宝
- 帖子: 3050
- 注册时间: 2008-06-30 22:32
- 联系:
[已解决]求救:/etc/sudoers错误,导致sduo命令无法使用
上次由 大宝 在 2008-09-02 12:02,总共编辑 1 次。
- 大宝
- 帖子: 3050
- 注册时间: 2008-06-30 22:32
- 联系:
这是修改后的sudoers文件内容:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
lmh ALL= NOPASSWD: /usr/bin/firestarter
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
lmh ALL= NOPASSWD: /usr/bin/firestarter
- solcomo
- 帖子: 2838
- 注册时间: 2007-04-25 13:12
- 大宝
- 帖子: 3050
- 注册时间: 2008-06-30 22:32
- 联系:
- bones7456
- 帖子: 8495
- 注册时间: 2006-04-12 20:05
- 来自: 杭州
- 联系:
- HuntXu
- 帖子: 5776
- 注册时间: 2007-09-29 3:09
- 大宝
- 帖子: 3050
- 注册时间: 2008-06-30 22:32
- 联系:
- yuriwin
- 帖子: 104
- 注册时间: 2007-12-12 8:24
Re: [已解决]求救:/etc/sudoers错误,导致sduo命令无法使用
我按照8楼的做法1、重启电脑,选择第二项:recovery mode
2、选择root Dorp to root shell prompt ,到第二步没有找到相应选项,无奈重启su,chmod 440 /etc/sudoers,接着sudo 出来提示:sudo: parse error in /etc/sudoers near line 22。我接着便打开/etc/souders,进行如下编辑:
省略**
root ALL=(ALL) ALL
libs ALL=(ALL) ALL
(从本行开始后面的全部删掉)
接着保存,没想到这样就可以了。
2、选择root Dorp to root shell prompt ,到第二步没有找到相应选项,无奈重启su,chmod 440 /etc/sudoers,接着sudo 出来提示:sudo: parse error in /etc/sudoers near line 22。我接着便打开/etc/souders,进行如下编辑:
省略**
root ALL=(ALL) ALL
libs ALL=(ALL) ALL
(从本行开始后面的全部删掉)
接着保存,没想到这样就可以了。