Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

Comment

PREVIOUS NEXT
Code Example
Shell :: install specific version of node 
Shell :: curl output to stdout 
Shell :: readme folder structure 
Shell :: linux group 
Shell :: install mongo compass 
Shell :: git clone in ubuntu 
Shell :: install nano in docker container 
Shell :: run mongodb on desktop 
Shell :: sudo rm rf command 
Shell :: git push local branch to existing remote 
Shell :: git push to another repository 
Shell :: delete non empty directory cmd 
Shell :: interact with container 
Shell :: react navigation react native 
Shell :: rmdir directory not empty 
Shell :: open path using terminal ubuntu 
Shell :: how to check is heroku git remote is added 
Shell :: docker logs 
Shell :: centos epel-release 
Shell :: how to git pull origin master 
Shell :: bash check if string starts with substring 
Shell :: raspberry wifi scan 
Shell :: how to install apache2 on ubuntu 20.04 
Shell :: sudo apt-get ignore warning 
Shell :: kill port cli 
Shell :: mongodb install ubuntu 20.04 
Shell :: merge child branch to parent git 
Shell :: git https to ssh 
Shell :: how to add images to git readme 
Shell :: delete branch github 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =