說明
在 Ubuntu 使用 sudo 權限時,總需要輸入密碼,好麻煩,透過以下設定,能一勞永逸。

步驟
1
2# 終端機輸入
$ sudo vi /etc/sudoers
將約第 26 行
1
%sudo ALL=(ALL:ALL) ALL
改成
1
%sudo ALL=(ALL:ALL) NOPASSWD:ALL

存檔,大功告成!
在 Ubuntu 使用 sudo 權限時,總需要輸入密碼,好麻煩,透過以下設定,能一勞永逸。

1
2# 終端機輸入
$ sudo vi /etc/sudoers
將約第 26 行
1
%sudo ALL=(ALL:ALL) ALL
改成
1
%sudo ALL=(ALL:ALL) NOPASSWD:ALL

存檔,大功告成!
原文連結:https://riverye.com/2019/11/22/Ubuntu-sudo-免輸入密碼-no-password-設定/
發表日期:2019-11-22
更新日期:2022-12-21
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: true
tags: true