- 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.
推薦閱讀
- 信息安全導(dǎo)論(在線實(shí)驗(yàn)+在線自測(cè))
- unidbg逆向工程:原理與實(shí)踐
- 數(shù)字身份與元宇宙信任治理
- 特種木馬防御與檢測(cè)技術(shù)研究
- 暗戰(zhàn)亮劍:黑客滲透與防御全程實(shí)錄
- 數(shù)字安全藍(lán)皮書:本質(zhì)屬性與重要特征
- Enterprise Cloud Security and Governance
- 網(wǎng)絡(luò)安全技術(shù)與實(shí)訓(xùn)(第4版)(微課版)
- 信息安全案例教程:技術(shù)與應(yīng)用(第2版)
- 網(wǎng)絡(luò)用戶行為的安全可信分析與控制
- 數(shù)據(jù)安全架構(gòu)設(shè)計(jì)與實(shí)戰(zhàn)
- 網(wǎng)絡(luò)安全大數(shù)據(jù)分析與實(shí)戰(zhàn)
- 數(shù)字政府網(wǎng)絡(luò)安全合規(guī)性建設(shè)指南:密碼應(yīng)用與數(shù)據(jù)安全
- Mastering Malware Analysis
- CTF網(wǎng)絡(luò)安全競(jìng)賽入門教程