首页 > 其他分享 >sudo: a terminal is required to read the password; either use..... 问题解决方法

sudo: a terminal is required to read the password; either use..... 问题解决方法

时间:2023-08-09 10:34:14浏览次数:35  
标签:use sudo read required terminal password

转载自:sudo: a terminal is required to read the password; either use ……问题解决方法_akaiziyou的博客-CSDN博客

问题

sudo: a terminal is required to read the password; either use the -S option to read from standard in or configure an askpass helper

出现场景

某个用户在shell脚本中使用了sudo指令,此时需要为sudo命令输入密码

解决方法

1)编辑文件/etc/sudoers(以下指令拼写是正确的,请不要误认为vi应该分开)

sudo visudo
#或
sudo vim /etc/sudoers

2)找到“root  ALL=(ALL)  ALL”一行,在下面插入“用户  ALL=(ALL:ALL) NOPASSWD:ALL”语句,保存(需要用wq!强制退出)退出

 

标签:use,sudo,read,required,terminal,password
From: https://www.cnblogs.com/ShineLeBlog/p/17616200.html

相关文章

  • clickhouse备份遇到的问题和处理
    错误一使用以下命令备份表的时候报错:ck:)backuptableabce.tbtodisk('backups','tb.zip');BACKUPTABLEabce.tbTOdisk('backups','tb.zip')Queryid:bc17655c-cd6f-4aca-a13f-644f5b4f713c0rowsinset.Elapsed:0.002sec.......
  • Vue3+ElementPlus,Cannot read properties of null (reading 'isCE')
    一、环境vue3,ElementPlus,@vue/cli5.0.8,npm9.6.7。二、报错内容在vue3框架,views文件夹下的AboutView.vue文件里,执行<el-button>Default</el-button>语句就会报错如下:Uncaughtruntimeerrors:×ERRORCannotreadpropertiesofnull(reading'isCE')TypeError:Cannotread......
  • TypeError: a bytes-like object is required, not ‘str‘,如何解决?
    在Python编程中,当我们在处理文件或网络传输等场景时,有时可能会遇到以下错误信息:"TypeError:abytes-likeobjectisrequired,not'str'"。这个错误通常表示我们传递了一个字符串对象而不是字节对象,导致了类型不匹配。如下所示,我们对字段进行base64编码时,出现了报错:在本文中,我们......
  • mysql中 You can’t specify target table for update in FROM clause 解决方案
    在mysql中更新数据,出现Youcan'tspecifytargettableforupdateinFROMclause错误,这句话意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。updatetablesetdel_flag='2'whereid=#{id}ORdept_idIN(SELECTt.idFROMtabletWHEREfind_......
  • new Thread().start(); - 多线程练习
     用Java创建一个线程是这样的:Threadthread=newThread();要启动Java线程,您将调用其start()方法,如下所示:   thread.start();此示例未指定要执行的线程的任何代码。线程启动后会立即再次停止。所以要往线程里写入代码。Threadthread=newThread(){@Override......
  • POJ-3619 Speed Reading
    POJ-3619SpeedReading#include<iostream>usingnamespacestd;typedeflonglongll;#defineIOSios::sync_with_stdio(0);cin.tie(0);cout.tie(0);//#defineiosios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);constintN=1e6+10;......
  • minio报错:Unable to use the drive /data: Drive /data: found backend type fs, expe
    docker安装minio,minio是最新的,使用命令:dockerpullminio/minio如下:启动命令:dockerrun-d-p9000:9000-p9001:9001--nameminio1-v/home/minio/data:/data-v/home/minio/config:/root/.minio-e"MINIO_ROOT_USER=admin"-e"MINIO_ROOT_PASSWORD=123456&quo......
  • refresh、reread、research and executeQuery
    X++developersseemtobehavingalotoftroublewiththese4datasourcemethods,nomatterhowseniortheyareinAX.SoIdecidedtomakeasmallhands-ontutorial,demonstratingthecommonusagescenarioforeachofthemethods.Ihaveorderedthemet......
  • c#关于终止thread 学习经典
    C#多线程学习笔记之(abort与join配合使用)转载:************   原文中的评论,有便于理解的内容*************************C#多线程学习笔记之(abort与join配合使用)  今天刚开始学多线程,尽管以前用过一点点,但是只是照着网上代码抄,没有真正理解,现在回过头来想研究研究,......
  • 基于 Flink & Paimon 实现 Streaming Warehouse 数据一致性管理
    一、背景早期的数仓生产体系主要以离线数仓为主,业务按照自己的业务需求将数仓分为不同的层次,例如DWD、DWS、ADS等。在离线数仓中,业务数据会经过离线ETL加工进入数仓,层与层之间的数据转换也会使用离线ETL来进行处理。ADS层可以直接对外提供Serving能力,中间层通常会使用Hiv......