📅  最后修改于: 2022-03-11 14:50:38.931000             🧑  作者: Mango
first edit the /etc/passwd file with root account
#chnaging part : find your user username and add /home before it then do the following steps
#replace hamsof with user username
sudo -i #to get root privileges
mkdir /home/hamsof #to create the directory /home/hamsof
cp -rT /etc/skel /home/hamsof #to populate /home/linda with default files and folders
chown -R hamsof:hamsof /home/ #to change the owner of /home/linda to user linda