- 论坛徽章:
- 0
|
先发版本- $ lsb_release -a
- LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
- Distributor ID: CentOS
- Description: CentOS release 5.5 (Final)
- Release: 5.5
- Codename: Final
- $ uname -a
- Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
复制代码 我把root用户名禁用了,使用sudo来操作服务器,刚才把/etc/sudoers 更改了权限,发生如下情况,- $ ll /etc/sudoers
- -rw-r----- 1 root root 3209 10-31 13:58 /etc/sudoers
- $ head -n1 /etc/passwd
- root:x:0:0:root:/root:/sbin/nologin
- $ sudo vim /etc/sudoers
- sudo: /etc/sudoers is mode 0640, should be 0440
- sudo: no valid sudoers sources found, quitting
复制代码 这种情况下,应该怎么办呢?正在运行的服务器哭啊。。!!!求救!!!!!!1 |
|