I've been using the root account as my everyday desktop account for several months and customized it extensively. I changed desktop settings, added wallpapers and music, wrote scripts, and saved various files. I now understand that running applications as root can give them unrestricted system access, so I want to switch to a normal user account. The problem is that the new account starts with a blank home directory, and I don't remember everything I changed or where I stored it. Is there a safe way to copy the root account's personal files and desktop configuration to the new account without granting that account root privileges?
3 Answers
The safest long-term approach is to create the regular account and gradually copy only the personal data and configuration you actually need. Copying all of /root may bring along stale files, incorrect permissions, or application state that expects to run as root. Look through hidden files in /root for desktop settings, but keep in mind that system configuration belongs elsewhere and should not be transferred wholesale.
Running the desktop as root is risky because any compromised application or script can modify the entire system. Moving to a normal account is the right fix. You can use administrative privileges only for specific system tasks, rather than giving the new account permanent root access. A full clone may require some trial and error, so keep the old account intact until you’ve confirmed that everything you need works.
Most desktop preferences, scripts, themes, wallpapers, and similar personal files are probably under /root, including hidden files. You can copy the contents of /root into the new user’s home directory, then recursively change ownership to the new account. For example, use a root shell to copy the files and run chown -R newuser:newuser /home/newuser afterward. Expect to fix a few things manually because some applications store system-wide settings elsewhere or behave differently when moved between accounts. Make a backup first, and do not copy files blindly over system directories.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures