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

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.

主站蜘蛛池模板: 湖州市| 社旗县| 麻江县| 玉树县| 岳池县| 浦北县| 张家港市| 铜山县| 涞水县| 重庆市| 梨树县| 广东省| 玉田县| 临朐县| 巴里| 扶绥县| 霸州市| 北海市| 玛纳斯县| 庆云县| 大冶市| 始兴县| 抚州市| 延川县| 南投市| 万荣县| 贵定县| 墨竹工卡县| 朝阳市| 竹山县| 望奎县| 七台河市| 马关县| 库尔勒市| 卢龙县| 红原县| 江山市| 全南县| 林西县| 垫江县| 南平市|