国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Linux下is not in the sudoers file解決方法

這篇具有很好參考價(jià)值的文章主要介紹了Linux下is not in the sudoers file解決方法。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

this incident will be reported,Linux,linux,運(yùn)維,服務(wù)器

如圖,在終端執(zhí)行sudo命令時(shí),系統(tǒng)提示

is not in the sudoers file. This incident will be reported.

原因就是當(dāng)前的用戶沒(méi)有加入到sudo的配置文件里

解決方法:

#切換到root用戶
su
#編輯配置文件
vim /etc/sudoers
#找到root ALL=(ALL) ALL, 在下面添加一行, xxx是用戶名稱
xxx ALL=(ALL) ALL

this incident will be reported,Linux,linux,運(yùn)維,服務(wù)器

?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-786218.html

注意這個(gè)文件是只讀的

this incident will be reported,Linux,linux,運(yùn)維,服務(wù)器

?

因此需要使用:wq!強(qiáng)制保存

然后重新執(zhí)行命令就OK了

this incident will be reported,Linux,linux,運(yùn)維,服務(wù)器

?

到了這里,關(guān)于Linux下is not in the sudoers file解決方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 配置Maven時(shí)報(bào)錯(cuò)The JAVA_HOME environment variable is not defined correctly,this environment解決方法匯總

    配置Maven時(shí)報(bào)錯(cuò)The JAVA_HOME environment variable is not defined correctly,this environment解決方法匯總

    在檢驗(yàn)maven是否安裝成功時(shí): C:Users28955mvn -v The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program. 嗚嗚嗚,真難啊 搜了原因發(fā)現(xiàn)是因?yàn)楦甙姹镜腏DK如JDK17免安裝版沒(méi)有JRE,配置好環(huán)境變量Maven識(shí)別不出JDK的位置導(dǎo)致的報(bào)錯(cuò) 1.找到maven的bin目

    2024年01月25日
    瀏覽(29)
  • This XML file does not appear to have any style information associated with it. The document tree is

    This XML file does not appear to have any style information associated with it. The document tree is

    PS:今天學(xué)習(xí)調(diào)試WebAPI項(xiàng)目,發(fā)現(xiàn)瀏覽器會(huì)返回以下說(shuō)明,因此做一個(gè)筆記 瀏覽器返回結(jié)果: This XML file does not appear to have any style information associated with it. The document tree is shown below. value API Demo: 總結(jié): 報(bào)這個(gè)信息其實(shí)是因?yàn)榉祷氐膕tring不是XML可解析供瀏覽器渲染的。XML文件可以

    2024年02月15日
    瀏覽(89)
  • vite4生產(chǎn)環(huán)境打包報(bào)錯(cuò)NODE_ENV=production is not supported in the .env file.

    vite4生產(chǎn)環(huán)境打包報(bào)錯(cuò)NODE_ENV=production is not supported in the .env file.

    vue3+vite4生產(chǎn)環(huán)境production打包報(bào)錯(cuò): 大致意思就是: NODE_ENV=.ENV文件中不支持生產(chǎn)。僅支持NODE_ENV=開(kāi)發(fā)來(lái)創(chuàng)建項(xiàng)目的開(kāi)發(fā)構(gòu)建。如果需要設(shè)置process.env.NODE_env,則可以在Vite配置中進(jìn)行設(shè)置。 ** ** 如果有警告 那就把vite.config.js里面的minify換成:terser(別忘記install下載了)

    2024年02月11日
    瀏覽(130)
  • THE SELF PRESERVATION MODE IS TURNED OFF.THIS MAY NOT PROTECT INSTANCE EXPIRY IN CASE OF NETWORK/OTH
  • Java異常 #Number of lines annotated by Git is not equal to number of lines in the file, check file …

    Java異常 #Number of lines annotated by Git is not equal to number of lines in the file, check file …

    在項(xiàng)目中某個(gè) java 文件左邊欄右鍵查看代碼版本履歷(Annotate)時(shí)無(wú)法顯示,IDEA 提示:Number of lines annotated by Git is not equal to number of lines in the file, check file encoding and line separators. ? 這個(gè)問(wèn)題涉及到不同操作系統(tǒng)下文本文件的換行符差異引起的。在不同操作系統(tǒng)中,文本文件的

    2024年02月03日
    瀏覽(58)
  • Kubernetes K8s 解決 This error is likely caused by: - The kubelet is not running

    日志內(nèi)容 3月 18 20:21:04 k8s-master kubelet[36490]: E0318 20:21:04.954990 36490 server.go:302] “Failed to run kubelet” err=“failed to run Kubelet: misconfiguration: kubelet cgroup driver: “systemd” is different from docker cgroup driver: “cgroupfs”” 根據(jù)報(bào)錯(cuò)信息發(fā)現(xiàn),是因?yàn)?k8s 和docker 的 cgroup driver 不一致導(dǎo)致的,

    2023年04月17日
    瀏覽(21)
  • git pull error: Pulling is not possible because you have unmerged files.hint: Fix them up in the ...

    git pull error: Pulling is not possible because you have unmerged files.hint: Fix them up in the ...

    git pull 報(bào)錯(cuò)如下 解決方案如下 PS F:jyjuyi_dataplat_web git pull error: Pulling is not possible because you have unmerged files. 錯(cuò)誤:無(wú)法提取,因?yàn)槟形春喜⒌奈募?hint: Fix them up in the work tree, and then use \\\'git add/rm file\\\' 提示:在工作樹(shù)中修改它們,然后使用\\\'git add/rm \\\' hint: as appropriate to mark reso

    2024年01月16日
    瀏覽(108)
  • PC端調(diào)用攝像頭拍照(vue)以及解決getUserMedia is not implemented in this browser

    下面這段代碼是在html文件中執(zhí)行調(diào)用攝像頭,然后進(jìn)行拍照的功能,一切都是按照里面的步驟去走的,功能也確實(shí)可以實(shí)現(xiàn),后面的代碼就是 vue 實(shí)現(xiàn)這個(gè)功能的邏輯代碼(如果你還直接使用,你就會(huì)發(fā)現(xiàn)一個(gè)坑爹的問(wèn)題,請(qǐng)繼續(xù)看下去) html文件內(nèi)容 vue項(xiàng)目中使用(組件),

    2024年02月13日
    瀏覽(19)
  • 解決Docker報(bào)錯(cuò):This error may indicate that the docker daemon is not running.

    解決Docker報(bào)錯(cuò):This error may indicate that the docker daemon is not running.

    ? ? ? ?成功安裝完docker【安裝過(guò)程見(jiàn)上一篇Windows安裝docker_up_xin的博客-CSDN博客】后的第二天就遇到了問(wèn)題,進(jìn)入PowerShell后報(bào)錯(cuò)如下: ? ? ? 網(wǎng)上常見(jiàn)的解決方法是在Service Windows GUI重啟docker desktop service,或者使用?DockerCli.exe -SwitchDaemon命令,但是都沒(méi)能解決 ????????網(wǎng)

    2024年02月11日
    瀏覽(20)
  • 解決報(bào)錯(cuò)The JAVA_HOME environment variable is not defined correctly This environment variable is needed

    解決報(bào)錯(cuò)The JAVA_HOME environment variable is not defined correctly This environment variable is needed

    注:本方法適用于安裝過(guò)java的用戶 一、報(bào)錯(cuò)內(nèi)容: 在使用mvn命令時(shí),環(huán)境變量報(bào)錯(cuò): 二、 查看環(huán)境變量后發(fā)現(xiàn)jdk路徑錯(cuò)誤,可是我jdk重裝過(guò),想不起來(lái)怎么辦? 我在命令行窗口使用java -verbose查出來(lái)的路徑為: E:/java/bin 但是當(dāng)我興高采烈在環(huán)境變量設(shè)置中寫(xiě)入此環(huán)境變量后

    2024年02月03日
    瀏覽(24)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包