当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 21 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 15:46 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
ubuntu12.04,能进入登录画面,就是死活登不进去,登录的时候屏幕一闪(1秒左右),有几行代码显示出来(持续1秒,仔细看了看,没有什么错误显示,都是些最基本的登录信息,也就是说,没显示什么错误),然后就又闪回去了,登陆界面的界面选项不能用,只显示back,没有unity, unity 2D, gnome等界面信息,不能调音量,不能关机,这些选项全部空白,登录文本界面,输入sudo....这样的命令,显示/usr/bin/python Permission denied :em20

由于关机前修改过/etc/sudoers文件,强烈怀疑是这个文件引起的,谁可以提供这个文件,这个文件不长,贴在下面就行了,我比对一下文件内容对不对,十分感谢!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 16:17 
头像

注册: 2007-11-25 13:29
帖子: 7270
地址: 新疆博乐
系统: 14.04/16.04/Fedroa22
送出感谢: 38
接收感谢: 101
代码:
[email protected]:~$ sudo cat /etc/sudoers
[sudo] password for teliute:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults   env_reset
Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d



_________________
===新手请看===
Ubuntu 安装 | Ubuntu12.04/14.04/16.04 桌面操作指南
··Ubuntu16.04 安装图文教程(超简单)
····有时间就静下心来——折腾:)


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 18:28 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
居然一样,那应该不是这里除了问题,现在普通用户一输入sudo就出问题,显示permission denied,到底哪里出问题了


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 18:31 

注册: 2007-08-02 20:29
帖子: 21303
系统: 窓辺とうこ
送出感谢: 0 次
接收感谢: 22
文件权限丢了?


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 19:16 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
google了一下,有个人跟我一样,他最后没解决,重装ubuntu了


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 19:18 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
JiangHui 写道:
文件权限丢了?

什么意思


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 20:00 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
我用root账号登录成功了,可以肯定的是,我的普通用户的sudo权限丢失了,有人知道怎么找回来吗


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 20:02 
头像

注册: 2008-07-24 11:33
帖子: 4793
地址: 郑州
送出感谢: 4
接收感谢: 92
你的用户还在sudo组么?


_________________
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 20:12 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
在sudo组,这究竟是什么问题,真是莫名其妙,还能是哪里出了问题呢


最后由 NewUserFF 编辑于 2012-08-22 20:25,总共编辑了 1 次

页首
 用户资料  
 
10 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 20:13 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
重装了一遍sudo也没用,另外说一下,如果乱输的话也会显示permission denied,而且普通用户一登录,就会显示-bash: groups: command not found


最后由 NewUserFF 编辑于 2012-08-22 20:49,总共编辑了 2 次

页首
 用户资料  
 
11 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 20:14 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
cuihao 写道:
你的用户还在sudo组么?

在sudo组
代码:
id mycityofsky

代码:
uid=1000(mycityofsky) gid=1000(mycityofsky) groups=1000(mycityofsky),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)


页首
 用户资料  
 
12 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-22 20:38 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
/etc/sudoer:

代码:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults   env_reset
Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-23 10:11 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
up


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-23 18:13 
头像

注册: 2007-12-17 21:41
帖子: 783
送出感谢: 67
接收感谢: 23
注意这行:
你的设置
代码:
root   ALL=(ALL:ALL) ALL


ubuntu 10.04 的原始设置
代码:
# /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

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL

# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

代码:
root   ALL=(ALL) ALL

可能你在括号里多了四个字符:
:ALL

建议比对用 meld 等专业比对程序,不要用眼睛去比对。
细节处很容易忽略

sudo apt-get install meld

sudo meld /etc/sudoers /etc/sudoers.my


_________________
* 日本人说:就算我们不拜靖国神社,韩国人也不会买我们的东西;
就算我们拜靖国神社,中国人照样买我们的东西。

* 历史不相信眼泪。能挡住狼的不是篱笆,而是棍子和猎枪。
--------------
Careone <emacslocale^126.com>
https://sourceforge.net/projects/emacslocale/files/


页首
 用户资料  
 
15 楼 
 文章标题 : Re: 莫名其妙的ubuntu就启动不了了,谁能提供一下12.04的/etc/sudoers文件
帖子发表于 : 2012-08-23 18:34 
头像

注册: 2010-11-19 22:55
帖子: 413
送出感谢: 10
接收感谢: 1
careone 写道:
注意这行:
你的设置
代码:
root   ALL=(ALL:ALL) ALL


ubuntu 10.04 的原始设置
代码:
# /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

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL

# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

代码:
root   ALL=(ALL) ALL

可能你在括号里多了四个字符:
:ALL

建议比对用 meld 等专业比对程序,不要用眼睛去比对。
细节处很容易忽略

sudo apt-get install meld

sudo meld /etc/sudoers /etc/sudoers.my


谢谢你的回复,可能是ubuntu改过了吧,你看前面一楼一人发过ubuntu 12.04的suoder文件,的确多了一个:ALL,应该不是这个文件,不过这个比对软件好像很有用,我拿别的文件看看


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 21 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译