Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146
Rep:
Copy one account to another?
Does anyone know the easiest way to copy one profile to another? I've been using this desktop system since Ubuntu 7.04 and I upgraded to 8.04 early last year; which brought likewise-open to the repositories. Now I've got this system authenticating against Active Directory and would like to use that account instead of the local account/profile. The problem is that I don't want to reconfigure a new profile.
What steps do I need to take to migrate my profile and settings from /home/username to /home/domain.local/username? Is it as simple as coping all of the files and directories including hidden files from /home/username to /home/domain.local/username and modifying the permissions accordingly or is there an easier/different method that should be used?
It should be as easy as that. As long as you adjust the ownership accordingly after that.
You could as well just tar everything up without preserving the ownerships (no -p), then restore it in your new account. I have no experience with activedirectory though, so meybe there's some specific thing about it that I am not taking into account.
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146
Original Poster
Rep:
Quote:
Originally Posted by i92guboj
It should be as easy as that. As long as you adjust the ownership accordingly after that.
You could as well just tar everything up without preserving the ownerships (no -p), then restore it in your new account. I have no experience with activedirectory though, so meybe there's some specific thing about it that I am not taking into account.
Cool thanks for the reply, I'll give it a shot and let you know.
I think that you'll be fine if you set up a new account (in the usual way) with active-directory/LDAP, make sure it works, and then move the files from the old home to the new. Since the user-ID (number) and the group-id (number) of the old and the new account will be different, a chown -r command (carefully performed by root) will "bequeath" the files to the new user.
It is also possible to stipulate that the numeric user-ID and/or group-ID of the newly created user ought to be identical to that of the old. While this is usually not advised, if you know you're going to be zapping the old user-id anyway you can get away with it.
As always: review your strategy carefully, write down a list of what you're going to do, check it twice...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.