日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

su:认证失败,同时,sudo passwd失效,不在sudors中,此事将被报告

發布時間:2023/12/8 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 su:认证失败,同时,sudo passwd失效,不在sudors中,此事将被报告 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在網上找了修改/etc/sudoers出現了錯誤

?出現死循環,/etc/sudoers文件怎么也打不開,沒有權限

測試各種方法

測試1:(沒成功)

yr 不在 sudoers 文件中。此事將被報告。同時,su無法驗證的解決辦法

測試2:(成功),pkexec指令還可以修改,能修改就行,不去研究具體的了

cd /etc pkexec visudo

?修改后的sudors如下所示,修改完之后就可以用sudo了

# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specification root ALL=(ALL:ALL) ALL d ALL=(ALL:ALL) ALL# Members of the admin group may gain root privileges #%admin ALL=(ALL) ALL# Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL# See sudoers(5) for more information on "#include" directives:#includedir /etc/sudoers.d

再用大家通用的方法解決su

sudo passwd 根據提示輸入su的新的密碼,完成后會提示設置成功,整個問題完美解決

總結

以上是生活随笔為你收集整理的su:认证失败,同时,sudo passwd失效,不在sudors中,此事将被报告的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。