LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-19-2009, 01:51 PM   #1
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Rep: Reputation: 17
Question 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?
 
Old 03-20-2009, 11:12 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 03-22-2009, 08:18 PM   #3
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by i92guboj View Post
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.
 
Old 03-22-2009, 09:49 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i cannot copy a file to a folder in file system with my root account realbezo Linux - Newbie 4 03-03-2009 10:45 PM
Postfix, copy all outgoing mail to admin account. exodist Linux - Software 8 02-01-2008 09:39 AM
Can I copy all my personal settings to another account? kryptobs2000 Linux - Newbie 8 06-03-2006 08:25 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Copy all incoming/outgoing mail to admin account axelyeung Linux - Software 0 06-23-2003 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration