无法 sudo 到深度学习图像 [英] Unable to sudo to Deep Learning Image
问题描述
我今天安装了最新的 Google Cloud 深度学习 VM 映像,VM 启动后,我能够通过 SSH 网络成功执行 sudo -i
.登录后,我开始在后台运行 Tensorflow 模型训练(使用 &).几个小时后,我无法以 root 身份登录.我收到以下消息:
I installed the latest Google Cloud Deep Learning VM Image today, after VM was launched, I was able to do sudo -i
successfully via SSH web.
Once I login, I start my Tensorflow model training running in background (Using &). Few hours later I'm unable to login as root.
I get the following message:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for my_username:
我试过了:
sudo -i
su sudo -i
su root
我能够重现这个问题.有什么建议吗?
I was able to replicate the issue. Any suggestions?
推荐答案
此问题是由 Google 内部引起的,并将用户从Google-sudoers"组中删除.对于所有受影响的实例,我建议遵循以下解决方法,直到推出永久修复程序.
This issue was caused due to an internal Google side and removes the user from "Google-sudoers" group. For all affected instances, I suggest following the below workaround until the permanent fix has been rolled out.
使用不同的用户名:
Use a different username:
- 如果使用浏览器 SSH 窗口,请点击设置图标(右上角),然后点击下拉菜单中的更改 Linux 名称.
- 使用 SDK$ gcloud计算ssh newusername@instance
- If using browser SSH window, click on the settings icon (top right), and click change Linux name in the drop down.
- Using the SDK $ gcloud compute ssh newusername@instance
在实例上启用操作系统登录(在元数据中设置enable-oslogin=True")并根据此 文章
Enable OS Login on the instance (set "enable-oslogin=True" in metadata) and per this article
您可以通过关注公共问题跟踪器来跟踪永久性修复.
You can track the permanent fix by following the Public Issue tracker.
这篇关于无法 sudo 到深度学习图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!