How can i duplicate a user including all the configurations and settings to a new username?Applying and...
Writing a system of Linear Equations
What is the word for a person who destroys monuments?
Is my sink P-trap too low?
Is it acceptable to use decoupling capacitor ground pad as ground for oscilloscope probe?
Why would short-haul flights be pressurised at a higher cabin pressure?
Can a business put whatever they want into a contract?
Are all men created equal according to Hinduism? Is this predominant western belief in agreement with the Vedas?
How to install Rasbian Stretch on Raspberry Pi 4?
Plot irregular circle in latex
How to generate short fixed length cryptographic hashes?
Electrosynthetic Autotrophs
Why is the UK still pressing on with Brexit?
Statistical tests for benchmark comparison
How many people need to succeed in a group check with three people?
Why is it called a stateful and a stateless firewall?
What does the "capacitor into resistance" symbol mean?
Why is the year in this ISO timestamp not 2019?
Why 1.5fill is 0pt
Amortized Loans seem to benefit the bank more than the customer
How to set a tolerance level for equality constraints
If a PC's ability score increases due to an item, does it increase the corresponding modifier for the ability score or any skills/attacks?
Have you ever been issued a passport or national identity card for travel by any other country?
Python web-scraper to download table of transistor counts from Wikipedia
Is there a tool to measure the "maturity" of a code in Git?
How can i duplicate a user including all the configurations and settings to a new username?
Applying and linking all settings/binaries of one user to another user in LinuxRestrict user to do SFTP on the www folder owned by www-data groupRunning program using X while different user logged in with gnome shellHow to get rsync to complain if user not foundWhy useradd -m doesn't fill created home dir with some defaults?Is the user with UID 1 “daemon” on all systems?What is a good way to change a group of users UIDs without usermod executing a time consuming chown on the user home directory?Recover user database from home directory UID'sDoes changing Linux username give any problems?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I already have root access since the computer is my personal property. It runs a recent version of a major Linux distribution. I want to create a new user that is an identical copy of an existing user, including all configurations and settings. The new user has already been added to the system. The step that is the focus of my question is copying all the files in the home directory. There are many files that have a string naming the username of the source user. I can programmatically edit the copies to name the new user. But, I am concerned about a big binary file ~/.config/dbus/user
and any others that may be like it. One big issue is that the length of the usernames is different and that merely changing the username with a tool like sed
could easily corrupt the file.
There are no issues with user contributed files as these are known to not have any absolute user references. Paths referencing home directory files were all written with ~/
or just ~
for cases just like this. But many GUI application developers were not so wise.
Is there a resource that could list any more files that I need to know about and what tools I should use to modify these files to work under a new username?
I believe this problem would be similar to renaming a user but all I find online refers to the usermod
command.
users d-bus useradd usermod
add a comment
|
I already have root access since the computer is my personal property. It runs a recent version of a major Linux distribution. I want to create a new user that is an identical copy of an existing user, including all configurations and settings. The new user has already been added to the system. The step that is the focus of my question is copying all the files in the home directory. There are many files that have a string naming the username of the source user. I can programmatically edit the copies to name the new user. But, I am concerned about a big binary file ~/.config/dbus/user
and any others that may be like it. One big issue is that the length of the usernames is different and that merely changing the username with a tool like sed
could easily corrupt the file.
There are no issues with user contributed files as these are known to not have any absolute user references. Paths referencing home directory files were all written with ~/
or just ~
for cases just like this. But many GUI application developers were not so wise.
Is there a resource that could list any more files that I need to know about and what tools I should use to modify these files to work under a new username?
I believe this problem would be similar to renaming a user but all I find online refers to the usermod
command.
users d-bus useradd usermod
add a comment
|
I already have root access since the computer is my personal property. It runs a recent version of a major Linux distribution. I want to create a new user that is an identical copy of an existing user, including all configurations and settings. The new user has already been added to the system. The step that is the focus of my question is copying all the files in the home directory. There are many files that have a string naming the username of the source user. I can programmatically edit the copies to name the new user. But, I am concerned about a big binary file ~/.config/dbus/user
and any others that may be like it. One big issue is that the length of the usernames is different and that merely changing the username with a tool like sed
could easily corrupt the file.
There are no issues with user contributed files as these are known to not have any absolute user references. Paths referencing home directory files were all written with ~/
or just ~
for cases just like this. But many GUI application developers were not so wise.
Is there a resource that could list any more files that I need to know about and what tools I should use to modify these files to work under a new username?
I believe this problem would be similar to renaming a user but all I find online refers to the usermod
command.
users d-bus useradd usermod
I already have root access since the computer is my personal property. It runs a recent version of a major Linux distribution. I want to create a new user that is an identical copy of an existing user, including all configurations and settings. The new user has already been added to the system. The step that is the focus of my question is copying all the files in the home directory. There are many files that have a string naming the username of the source user. I can programmatically edit the copies to name the new user. But, I am concerned about a big binary file ~/.config/dbus/user
and any others that may be like it. One big issue is that the length of the usernames is different and that merely changing the username with a tool like sed
could easily corrupt the file.
There are no issues with user contributed files as these are known to not have any absolute user references. Paths referencing home directory files were all written with ~/
or just ~
for cases just like this. But many GUI application developers were not so wise.
Is there a resource that could list any more files that I need to know about and what tools I should use to modify these files to work under a new username?
I believe this problem would be similar to renaming a user but all I find online refers to the usermod
command.
users d-bus useradd usermod
users d-bus useradd usermod
asked 44 mins ago
SkaperenSkaperen
6085 silver badges12 bronze badges
6085 silver badges12 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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/4.0/"u003ecc by-sa 4.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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541957%2fhow-can-i-duplicate-a-user-including-all-the-configurations-and-settings-to-a-ne%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541957%2fhow-can-i-duplicate-a-user-including-all-the-configurations-and-settings-to-a-ne%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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