[问题]sudo无法使用
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 38
- 注册时间: 2008-07-15 14:45
[问题]sudo无法使用
各位大虾:
小弟俺刚接触ubuntu,今天装了8.04版,我也么去修改什么文件,到后来sudo不能使用了,不知道是出了什么问题,提示如下:
>>> sudoers file: syntax error, line 12 <<<
sudo: parse error in /etc/sudoers near line 12
我该怎么去修改才能使用sudo???????????急!!!!!
希望哪位大虾指导。
小弟俺刚接触ubuntu,今天装了8.04版,我也么去修改什么文件,到后来sudo不能使用了,不知道是出了什么问题,提示如下:
>>> sudoers file: syntax error, line 12 <<<
sudo: parse error in /etc/sudoers near line 12
我该怎么去修改才能使用sudo???????????急!!!!!
希望哪位大虾指导。
- solcomo
- 帖子: 2838
- 注册时间: 2007-04-25 13:12
-
- 帖子: 38
- 注册时间: 2008-07-15 14:45
[问题]sudo无法使用
recovery mode
bash: recovery:找不到命令
bash: recovery:找不到命令
- solcomo
- 帖子: 2838
- 注册时间: 2007-04-25 13:12
-
- 帖子: 38
- 注册时间: 2008-07-15 14:45
[问题]sudo无法使用
:~$ su root
口令:
su:鉴定故障
victory@ares:~$ visudo
visudo: /etc/sudoers: Permission denied
口令:
su:鉴定故障
victory@ares:~$ visudo
visudo: /etc/sudoers: Permission denied
- Nile
- 帖子: 990
- 注册时间: 2006-07-15 11:20
- 来自: 枫叶刀市
Re: [问题]sudo无法使用
确定你输入的是root密码lingai521 写了::~$ su root
口令:
su:鉴定故障
victory@ares:~$ visudo
visudo: /etc/sudoers: Permission denied
Thinkpad T400
-
- 帖子: 18311
- 注册时间: 2008-01-09 22:41
-
- 帖子: 18311
- 注册时间: 2008-01-09 22:41
先执行 su
输入口令
再gedit /etc/sudoers
我这里12行是空的,什么都没有,不知道lz你哪里有什么错误……
贴一下:
输入口令
再gedit /etc/sudoers
我这里12行是空的,什么都没有,不知道lz你哪里有什么错误……
贴一下:
# /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
-
- 帖子: 38
- 注册时间: 2008-07-15 14:45
# /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
"/etc/sudoers.tmp" 33 lines, 797 characters
打开了,画面是这样的,请指导。
#
# 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
"/etc/sudoers.tmp" 33 lines, 797 characters
打开了,画面是这样的,请指导。
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 38
- 注册时间: 2008-07-15 14:45
[问题]sudo无法使用
# /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
# Entries for Smb4K users.
# Generated by Smb4K. Please do not modify!
User_Alias SMB4KUSERS = victory
Defaults:SMB4KUSERS env_keep += "PASSWD USER"
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_kill
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_umount
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_mount
# End of Smb4K user entries.
~
我要怎么样修改才可以用啊
#
# 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
# Entries for Smb4K users.
# Generated by Smb4K. Please do not modify!
User_Alias SMB4KUSERS = victory
Defaults:SMB4KUSERS env_keep += "PASSWD USER"
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_kill
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_umount
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_mount
# End of Smb4K user entries.
~
我要怎么样修改才可以用啊
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
Re: [问题]sudo无法使用
多了行 ALLlingai521 写了:# /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
# Entries for Smb4K users.
# Generated by Smb4K. Please do not modify!
User_Alias SMB4KUSERS = victory
Defaults:SMB4KUSERS env_keep += "PASSWD USER"
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_kill
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_umount
SMB4KUSERS ares = NOPASSWD: /usr/bin/smb4k_mount
# End of Smb4K user entries.
~
我要怎么样修改才可以用啊
^_^ ~~~
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。