官术网_书友最值得收藏!

Hands-on lab for configuring adduser

For this lab, we'll be working with the adduser utility, which is peculiar to Debian/Ubuntu systems:

  1. 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.

  1. Install the ecryptfs-utils package:
        sudo apt install ecryptfs-utils
  1. Create a user account with encrypted home directory for Cleopatra and then view the results:
        sudo adduser --encrypt-home cleopatra
ls -l /home
  1. 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.

主站蜘蛛池模板: 汉阴县| 咸阳市| 临汾市| 廉江市| 肥东县| 都安| 永兴县| 商都县| 乡城县| 鄂托克旗| 信丰县| 清镇市| 恭城| 同江市| 婺源县| 临桂县| 尼勒克县| 龙岩市| 九龙县| 潼关县| 寿阳县| 濉溪县| 营口市| 兴安盟| 沿河| 井研县| 嘉鱼县| 会昌县| 洮南市| 额尔古纳市| 舞阳县| 连平县| 巨野县| 辽源市| 类乌齐县| 彭山县| 成武县| 彰武县| 乾安县| 南木林县| 门头沟区|