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

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.

主站蜘蛛池模板: 定南县| 易门县| 渑池县| 湖州市| 买车| 清远市| 鄂伦春自治旗| 喀什市| 曲沃县| 咸宁市| 察雅县| 如东县| 鸡泽县| 汪清县| 龙岩市| 保靖县| 雷山县| 八宿县| 南溪县| 芒康县| 个旧市| 霍城县| 蓝田县| 岳池县| 阳山县| 方城县| 扎兰屯市| 泸西县| 常宁市| 博爱县| 巴彦淖尔市| 平泉县| 绥江县| 濉溪县| 秦安县| 娄底市| 哈密市| 荆州市| 军事| 城口县| 如东县|