Skip to Content
VMWARE錦囊妙計第二版
book

VMWARE錦囊妙計第二版

by Ryan Troy, Matthew Helmke
April 2013
Beginner to intermediate
368 pages
6h 45m
Chinese
GoTop Information, Inc.
Content preview from VMWARE錦囊妙計第二版
244
|
第六章
當命令已經執行,您可以藉由執行以下命令驗證它是否運作:
esxcfg-auth -p
您將看到類似以下的輸出:
account required /lib/security/pam_tally.so deny=10 no_magic_root
請注意
deny=10
no_magic_root
這些變數是現在的設定,要恢復預設的設定,請執
行相同的命令,但將數值由
10
更改為
0
,這樣將會移除
/etc/pam.d/system-auth
文件的
項目。
6.20 限制存取 su 命令
問題
僅適用於 ESXi 3.5/4.x 您希望確定只有特定使用者帳戶可以使用
su
,以獲得完整的
root
權限。
解決方案
建立一個名為
wheel
的使用者群組,配置讓它能夠存取
su
,並且加入需要存取的使用者
到群組。
討論
wheel
群組是一個作業系統層群組,它允許一個有限數量的特定使用者使用
root
命令,
像是
su
命令。使用這個方法應該是您要在 ESX 伺服器上實現安全性的第二個選擇,首
選是執行前面章節所提到的
sudo
在預設的情況下。只有
wheel
群組內的使用者可以擁有執行
su
命令的能力。透過使用可
插拔驗證模組(Pluggable authentication modulesPAM)與
wheel
使用者群組的組合,
您可以藉由要求使用者使用
sudo
命令來獲取
root
權限,以限制存取
su
命令。
瀏覽至
/etc/pam.d/
目錄,並找尋
su
文件,在您慣用的編輯器開啟此文件並請搜尋開頭有
#auth required
的行列,移除 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
深度學習|內行人的做法

深度學習|內行人的做法

Josh Patterson, Adam Gibson

Publisher Resources

ISBN: 9789862767443