Answers for "add a home directory for existing user"

1

add a home directory for existing user

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
Posted by: Guest on October-09-2021

Code answers related to "add a home directory for existing user"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language