- Mastering Linux Security and Hardening
- Donald A. Tevault
- 116字
- 2021-07-02 19:19:23
Hands-on lab for configuring adduser
For this lab, we'll be working with the adduser utility, which is peculiar to Debian/Ubuntu systems:
- On your Ubuntu virtual machine, open the /etc/adduser.conf file for editing. Find the line that says:
DIR_MODE=0755
Change it to:
DIR_MODE=0700
Save the file and exit the text editor.
- Install the ecryptfs-utils package:
sudo apt install ecryptfs-utils
- Create a user account with encrypted home directory for Cleopatra and then view the results:
sudo adduser --encrypt-home cleopatra
ls -l /home
- Log in as Cleopatra and run the ecryptfs-unwrap-passphrase command:
su - cleopatra
ecryptfs-unwrap-passphrase
exit
Note that some of the information that adduser asks for is optional, and you can just hit the Enter key for those items.
推薦閱讀
- Mastering Kali Linux for Advanced Penetration Testing
- 網(wǎng)絡(luò)安全技術(shù)與實(shí)訓(xùn)(第4版)(微課版)
- 從0到1:CTFer成長(zhǎng)之路
- Digital Forensics with Kali Linux
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)實(shí)戰(zhàn)
- 編譯與反編譯技術(shù)實(shí)戰(zhàn)
- 網(wǎng)絡(luò)攻防實(shí)戰(zhàn)研究:MySQL數(shù)據(jù)庫(kù)安全
- Instant OSSEC Host-based Intrusion Detection System
- ATT&CK與威脅獵殺實(shí)戰(zhàn)
- CCNA Security 210-260 Certification Guide
- 精通Metasploit滲透測(cè)試(第3版)
- 大話數(shù)據(jù)恢復(fù)
- Hands-On Spring Security 5 for Reactive Applications
- Burp Suite Essentials
- 數(shù)字安全網(wǎng)絡(luò)戰(zhàn)