How to transfer all user settings and preferences to root and delete all users except root?











up vote
-1
down vote

favorite












How to transfer all files, settings and preferences from a user to root and delete all users but root ?
I find it tedious and time-consuming to work on ubuntu 18.04 "LTS" gui when I'm not root.
Root login is enabled and just want to transfer every thing from the user to the root and make the system a root only pc.
the question is how to do it and not why shouldn't it be done.










share|improve this question




















  • 1




    Gnome is not designed to run as root. You are asking for support to do an unsupported and untested action, so you probably won't get many quality answers. If you run into problems, you will be on your own.
    – user535733
    Nov 27 at 3:29










  • Its already running smoothly as root which means it is designed to run as root. The question is how to transfer every thing to the root account and then delete the other guys to save space and file tree complexity. If I run into problems, I will try to fix them, ask, reinstall, install different distro or even switch to windows to get my work done fast. Thank you
    – Amr Berag
    Nov 27 at 3:43












  • @user535733 it seems that the new gnome is not designed to run as normal user as well. Too many bugs and unclean gui elements such as panels and desktop icons overlapping and delays.
    – Amr Berag
    Nov 29 at 4:04










  • @user535733 Do you mean it is desigen not to run well as root? Its better to show warning messages and let the user decide. Unless they are planning selling it to apple.
    – Amr Berag
    Nov 29 at 4:18

















up vote
-1
down vote

favorite












How to transfer all files, settings and preferences from a user to root and delete all users but root ?
I find it tedious and time-consuming to work on ubuntu 18.04 "LTS" gui when I'm not root.
Root login is enabled and just want to transfer every thing from the user to the root and make the system a root only pc.
the question is how to do it and not why shouldn't it be done.










share|improve this question




















  • 1




    Gnome is not designed to run as root. You are asking for support to do an unsupported and untested action, so you probably won't get many quality answers. If you run into problems, you will be on your own.
    – user535733
    Nov 27 at 3:29










  • Its already running smoothly as root which means it is designed to run as root. The question is how to transfer every thing to the root account and then delete the other guys to save space and file tree complexity. If I run into problems, I will try to fix them, ask, reinstall, install different distro or even switch to windows to get my work done fast. Thank you
    – Amr Berag
    Nov 27 at 3:43












  • @user535733 it seems that the new gnome is not designed to run as normal user as well. Too many bugs and unclean gui elements such as panels and desktop icons overlapping and delays.
    – Amr Berag
    Nov 29 at 4:04










  • @user535733 Do you mean it is desigen not to run well as root? Its better to show warning messages and let the user decide. Unless they are planning selling it to apple.
    – Amr Berag
    Nov 29 at 4:18















up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











How to transfer all files, settings and preferences from a user to root and delete all users but root ?
I find it tedious and time-consuming to work on ubuntu 18.04 "LTS" gui when I'm not root.
Root login is enabled and just want to transfer every thing from the user to the root and make the system a root only pc.
the question is how to do it and not why shouldn't it be done.










share|improve this question















How to transfer all files, settings and preferences from a user to root and delete all users but root ?
I find it tedious and time-consuming to work on ubuntu 18.04 "LTS" gui when I'm not root.
Root login is enabled and just want to transfer every thing from the user to the root and make the system a root only pc.
the question is how to do it and not why shouldn't it be done.







18.04 root user-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 at 18:20

























asked Nov 27 at 3:06









Amr Berag

994




994








  • 1




    Gnome is not designed to run as root. You are asking for support to do an unsupported and untested action, so you probably won't get many quality answers. If you run into problems, you will be on your own.
    – user535733
    Nov 27 at 3:29










  • Its already running smoothly as root which means it is designed to run as root. The question is how to transfer every thing to the root account and then delete the other guys to save space and file tree complexity. If I run into problems, I will try to fix them, ask, reinstall, install different distro or even switch to windows to get my work done fast. Thank you
    – Amr Berag
    Nov 27 at 3:43












  • @user535733 it seems that the new gnome is not designed to run as normal user as well. Too many bugs and unclean gui elements such as panels and desktop icons overlapping and delays.
    – Amr Berag
    Nov 29 at 4:04










  • @user535733 Do you mean it is desigen not to run well as root? Its better to show warning messages and let the user decide. Unless they are planning selling it to apple.
    – Amr Berag
    Nov 29 at 4:18
















  • 1




    Gnome is not designed to run as root. You are asking for support to do an unsupported and untested action, so you probably won't get many quality answers. If you run into problems, you will be on your own.
    – user535733
    Nov 27 at 3:29










  • Its already running smoothly as root which means it is designed to run as root. The question is how to transfer every thing to the root account and then delete the other guys to save space and file tree complexity. If I run into problems, I will try to fix them, ask, reinstall, install different distro or even switch to windows to get my work done fast. Thank you
    – Amr Berag
    Nov 27 at 3:43












  • @user535733 it seems that the new gnome is not designed to run as normal user as well. Too many bugs and unclean gui elements such as panels and desktop icons overlapping and delays.
    – Amr Berag
    Nov 29 at 4:04










  • @user535733 Do you mean it is desigen not to run well as root? Its better to show warning messages and let the user decide. Unless they are planning selling it to apple.
    – Amr Berag
    Nov 29 at 4:18










1




1




Gnome is not designed to run as root. You are asking for support to do an unsupported and untested action, so you probably won't get many quality answers. If you run into problems, you will be on your own.
– user535733
Nov 27 at 3:29




Gnome is not designed to run as root. You are asking for support to do an unsupported and untested action, so you probably won't get many quality answers. If you run into problems, you will be on your own.
– user535733
Nov 27 at 3:29












Its already running smoothly as root which means it is designed to run as root. The question is how to transfer every thing to the root account and then delete the other guys to save space and file tree complexity. If I run into problems, I will try to fix them, ask, reinstall, install different distro or even switch to windows to get my work done fast. Thank you
– Amr Berag
Nov 27 at 3:43






Its already running smoothly as root which means it is designed to run as root. The question is how to transfer every thing to the root account and then delete the other guys to save space and file tree complexity. If I run into problems, I will try to fix them, ask, reinstall, install different distro or even switch to windows to get my work done fast. Thank you
– Amr Berag
Nov 27 at 3:43














@user535733 it seems that the new gnome is not designed to run as normal user as well. Too many bugs and unclean gui elements such as panels and desktop icons overlapping and delays.
– Amr Berag
Nov 29 at 4:04




@user535733 it seems that the new gnome is not designed to run as normal user as well. Too many bugs and unclean gui elements such as panels and desktop icons overlapping and delays.
– Amr Berag
Nov 29 at 4:04












@user535733 Do you mean it is desigen not to run well as root? Its better to show warning messages and let the user decide. Unless they are planning selling it to apple.
– Amr Berag
Nov 29 at 4:18






@user535733 Do you mean it is desigen not to run well as root? Its better to show warning messages and let the user decide. Unless they are planning selling it to apple.
– Amr Berag
Nov 29 at 4:18












1 Answer
1






active

oldest

votes

















up vote
1
down vote













If you are new to Linux, it's not recommends to do that. You do that only if you have enough reason.



However, if you insist, copy all files and dirs (including hidden files started with ".") from /home/USERNAME/ to /root/ and chown root:root -R them. That won't insure it can seamlessly work. After that you still have to encounter problems, cause in some files user name and home folder path is written there.



Desktop itself runs well on root. If you already logged in desktop as root, don't copy the files started with .xauth from user home folder.






share|improve this answer





















  • Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
    – Amr Berag
    Nov 27 at 4:37










  • I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
    – Amr Berag
    Nov 27 at 7:56










  • I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
    – Amr Berag
    Nov 29 at 4:13











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096364%2fhow-to-transfer-all-user-settings-and-preferences-to-root-and-delete-all-users-e%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













If you are new to Linux, it's not recommends to do that. You do that only if you have enough reason.



However, if you insist, copy all files and dirs (including hidden files started with ".") from /home/USERNAME/ to /root/ and chown root:root -R them. That won't insure it can seamlessly work. After that you still have to encounter problems, cause in some files user name and home folder path is written there.



Desktop itself runs well on root. If you already logged in desktop as root, don't copy the files started with .xauth from user home folder.






share|improve this answer





















  • Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
    – Amr Berag
    Nov 27 at 4:37










  • I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
    – Amr Berag
    Nov 27 at 7:56










  • I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
    – Amr Berag
    Nov 29 at 4:13















up vote
1
down vote













If you are new to Linux, it's not recommends to do that. You do that only if you have enough reason.



However, if you insist, copy all files and dirs (including hidden files started with ".") from /home/USERNAME/ to /root/ and chown root:root -R them. That won't insure it can seamlessly work. After that you still have to encounter problems, cause in some files user name and home folder path is written there.



Desktop itself runs well on root. If you already logged in desktop as root, don't copy the files started with .xauth from user home folder.






share|improve this answer





















  • Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
    – Amr Berag
    Nov 27 at 4:37










  • I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
    – Amr Berag
    Nov 27 at 7:56










  • I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
    – Amr Berag
    Nov 29 at 4:13













up vote
1
down vote










up vote
1
down vote









If you are new to Linux, it's not recommends to do that. You do that only if you have enough reason.



However, if you insist, copy all files and dirs (including hidden files started with ".") from /home/USERNAME/ to /root/ and chown root:root -R them. That won't insure it can seamlessly work. After that you still have to encounter problems, cause in some files user name and home folder path is written there.



Desktop itself runs well on root. If you already logged in desktop as root, don't copy the files started with .xauth from user home folder.






share|improve this answer












If you are new to Linux, it's not recommends to do that. You do that only if you have enough reason.



However, if you insist, copy all files and dirs (including hidden files started with ".") from /home/USERNAME/ to /root/ and chown root:root -R them. That won't insure it can seamlessly work. After that you still have to encounter problems, cause in some files user name and home folder path is written there.



Desktop itself runs well on root. If you already logged in desktop as root, don't copy the files started with .xauth from user home folder.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 27 at 4:10









Bob Johnson

212




212












  • Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
    – Amr Berag
    Nov 27 at 4:37










  • I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
    – Amr Berag
    Nov 27 at 7:56










  • I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
    – Amr Berag
    Nov 29 at 4:13


















  • Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
    – Amr Berag
    Nov 27 at 4:37










  • I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
    – Amr Berag
    Nov 27 at 7:56










  • I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
    – Amr Berag
    Nov 29 at 4:13
















Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
– Amr Berag
Nov 27 at 4:37




Thank you Bob. I will try the nautilus search bar or SearchMonkey to search for the user name occurrences with and without regular expressions.
– Amr Berag
Nov 27 at 4:37












I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
– Amr Berag
Nov 27 at 7:56




I have more than enough reasons and will test your suggestions in a virtual machine. I'm even trying to automate this using a bash script. +1 for that.
– Amr Berag
Nov 27 at 7:56












I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
– Amr Berag
Nov 29 at 4:13




I copied almost everything one by one manualy, fixed the sound problems by copying files from the autostart folder and changed the environmental variables path. some applications like android studio were smart enough to find the copied sdk. I will keep the normal user for a while in case more files need to be copied to the root home.
– Amr Berag
Nov 29 at 4:13


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096364%2fhow-to-transfer-all-user-settings-and-preferences-to-root-and-delete-all-users-e%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents