I use the root for a period of times,Now,I log on the normal user I created before,which environment is not as same as root. Are there people know how to copy the all of data in root to normal user below /home(entire cover)?

  • By root do you mean / or /root? – pram Apr 27 '14 at 3:56
  • I always log on root which means user name.maybe is /root?? (My english is not well,sorry) – Super丨Tin Apr 27 '14 at 4:01

If your new user is a sudoer, just use

sudo cp -R /root ~

then change the owner of the newly copied files to your new user (change 'username' to your actual user accordingly)

sudo chown -R username:username ~/root
| improve this answer | |
  • @Super丨Tin if it answered your question then you should set the answer Accepted (green check mark), and if you like the answer you should upvote it. – nafg Jul 25 '16 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.