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

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.

主站蜘蛛池模板: 乌兰察布市| 林甸县| 莎车县| 陆河县| 潼关县| 华池县| 彩票| 抚远县| 博野县| 彩票| 乐都县| 庆阳市| 柞水县| 师宗县| 桂阳县| 海盐县| 无极县| 滦南县| 行唐县| 榆树市| 沐川县| 金寨县| 图片| 尼玛县| 嫩江县| 谢通门县| 唐海县| 西昌市| 永泰县| 房产| 沅陵县| 焉耆| 云阳县| 萝北县| 达拉特旗| 石首市| 彰武县| 延津县| 拜泉县| 兴宁市| 凤山市|