Ubuntu 服务器 "sudo" 错误 AWS EC2
Ubuntu server "sudo" error AWS EC2
我在 Amazon 的 EC2 上 运行ning ubuntu 14.04,我使用默认用户“ubuntu”登录,这里的问题是我不能 运行 命令作为 sudeor .
当我尝试使用 sudo 运行 命令时,我得到:
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
我到处寻求帮助,但所有建议的解决方案都未能解决问题。
提前致谢
它s a bit lengthy procedure, but I got a way out. The ultimate objective is to gain access to root user.
Step 1- Add a new user that does not need .ppk key to login.
1. Firstly stop your faulty instance and make a copy of the same EC2 instance.
2. Now in the AWS console, you will see a "Volumne" tab on the left hand side. Detach the volume of the faulty instance and attach with the new instance.
3. Now mount this newly attach drive in the new instance and add a new user into it.
4. Simply now create a new user and set permission that user don
不需要 .ppk 密钥文件来登录。
第 2 步:获取根访问权限
1. 使用创建的新用户登录后,只需键入 "su" 命令即可。系统将要求您输入新用户的密码。
2. 输入密码,现在您将成为 root 用户。你不再需要 sudo 了。
我在 Amazon 的 EC2 上 运行ning ubuntu 14.04,我使用默认用户“ubuntu”登录,这里的问题是我不能 运行 命令作为 sudeor .
当我尝试使用 sudo 运行 命令时,我得到:
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
我到处寻求帮助,但所有建议的解决方案都未能解决问题。
提前致谢
它s a bit lengthy procedure, but I got a way out. The ultimate objective is to gain access to root user.
Step 1- Add a new user that does not need .ppk key to login.
1. Firstly stop your faulty instance and make a copy of the same EC2 instance.
2. Now in the AWS console, you will see a "Volumne" tab on the left hand side. Detach the volume of the faulty instance and attach with the new instance.
3. Now mount this newly attach drive in the new instance and add a new user into it.
4. Simply now create a new user and set permission that user don
不需要 .ppk 密钥文件来登录。
第 2 步:获取根访问权限 1. 使用创建的新用户登录后,只需键入 "su" 命令即可。系统将要求您输入新用户的密码。 2. 输入密码,现在您将成为 root 用户。你不再需要 sudo 了。