我正在尝试为linux机器添加新的用途。我使用了这个命令。
adduser "user_name" -u "UID" -G "GROUP_NAME"
在/etc/shadow中看到条目是
"user_name":$1$IfBL9BXC$ealgUJum3HJsDRqOUY74O1:0:0:99999::::
但当我尝试使用相同的用户名登录时,我的密码被接受,但立即要求我更改密码,如下所示。
You are required to change your password immediately (root enforced)
所以我的Dockerfile是这样写的:
# set env vars for linux user
ENV LINUX_USER="kbuser"
...
... # other stuff
...
USER kbuser
但我想用
USER $LINUX_USER
所以我只需要在文件中的一个地方写用户名。但这不管用。
我怎么才能避开这一切?
谢谢。
每次我输入"sudo apt-get update“时,我都会收到很多我不知道如何修复的错误。我是个新手,在无数个小时的研究之后,我不知道该怎么修复它,所以我决定删除sudo。现在,每次我尝试安装sudo back时,都会得到以下提示:
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.
在Cognito user pool联合中,我添加了Open ID connect以连接到Auth0,并使用Auth0作为身份提供者。 当通过Auth0登录时,Cognito user pool会在用户池中创建一个用户名如下所示的用户。 providername_ad|SomeName-Ldap-Linux-Connector-Dev-2|xxxxx-xxxx-xxxx-xxxx-xxxxxx 我不希望用户名是这样的,因为我的应用程序不支持这样。 有没有办法告诉Cognito用户池,对用户名和Open ID使用不同的字段(声明)? 我尝试启用用户迁移lambda,但它从不触发。