[Terminal] 使用管理员权限
Tofloor
poster avatar
张张张
deepin
2022-12-30 17:46
Author

使用 sudo su时候

终端会大约有五秒钟的时间才会弹出一行 ”请验证人脸或密码”

我记得以前没这么久吧,感觉卡住了一样。

大家有谁知道吗?

Reply Favorite View the author
All Replies
jjcui8595
deepin
2022-12-30 17:52
#1

我没有使用人脸验证,执行sudo su立即提示输入密码

Reply View the author
忘记、过去
deepin
2022-12-30 17:58
#2
Reply View the author
shy
deepin
2022-12-30 17:58
#3

https://bbs.deepin.org/post/247806

可以参考一下这个的解决方法

不过这个问题我似乎没有遇到。。

最后为什么不直接用su呢(如果没有特殊配置的话)

Reply View the author
张张张
deepin
2022-12-30 18:31
#4

是使用sudo 来进行其他命令也很慢,比如sudo apt-get install

Reply View the author
张张张
deepin
2022-12-30 18:35
#5

感谢

Reply View the author
张张张
deepin
2022-12-30 18:35
#6
shy

https://bbs.deepin.org/post/247806

可以参考一下这个的解决方法

不过这个问题我似乎没有遇到。。

最后为什么不直接用su呢(如果没有特殊配置的话)

感谢

Reply View the author
PrintfCow
deepin
2022-12-30 18:52
#7
shy

https://bbs.deepin.org/post/247806

可以参考一下这个的解决方法

不过这个问题我似乎没有遇到。。

最后为什么不直接用su呢(如果没有特殊配置的话)

我又试了一下,至少在修好 sudo su速度慢的情况下,su用不了,会显示鉴定故障

Reply View the author
shy
deepin
2022-12-30 18:56
#8
It has been deleted!
shy
deepin
2022-12-30 18:56
#9
It has been deleted!
shy
deepin
2022-12-30 18:57
#10
PrintfCow

我又试了一下,至少在修好 sudo su速度慢的情况下,su用不了,会显示鉴定故障

这个情况我也遇到过, sudo passwd root设置root密码后重启应该可以解决鉴定故障的问题...原因可能是目前root账户没有密码(sudo用的是普通账户的密码不是root账户的)

Reply View the author
PrintfCow
deepin
2022-12-30 19:02
#11
shy

这个情况我也遇到过, sudo passwd root设置root密码后重启应该可以解决鉴定故障的问题...原因可能是目前root账户没有密码(sudo用的是普通账户的密码不是root账户的)

可以了,谢谢

Reply View the author
fymumu
deepin
2022-12-30 21:28
#12
PrintfCow

我又试了一下,至少在修好 sudo su速度慢的情况下,su用不了,会显示鉴定故障

直接执行su鉴定故障是因为,su命令的密码是root密码,sudo命令的密码是当前用户的密码,如果你的root没有设置密码,可以通过sudo passwd root的方式改密码,sudo -i也可以切换root

Reply View the author
Lwh2008-Equinox
deepin
2022-12-30 22:15
#13
shy

https://bbs.deepin.org/post/247806

可以参考一下这个的解决方法

不过这个问题我似乎没有遇到。。

最后为什么不直接用su呢(如果没有特殊配置的话)

运行su的话即使密码正确也不能通过验证

Reply View the author
ThinKinG
deepin testing team
2023-03-13 22:30
#14

https://wiki.deepin.org/zh/04_%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98FAQ/%E4%BD%BF%E7%94%A8sudo%E5%91%BD%E4%BB%A4%E5%93%8D%E5%BA%94%E6%85%A2

可以参考 WIKI 方案

Reply View the author