Re: moving a user account from one linux box to another

From: prawnpusher (nospamtoday_at_thanks.bye)
Date: 04/25/04


Date: Sun, 25 Apr 2004 02:57:20 +0200

David wrote:

> prawnpusher wrote:
>> Thanks for your help. Are there any issues like passwords or anything --
>> or is it just a question of ensuring the user & group ids remain the
>> same?
>>
>> Also, will it work if I on the new system I create "fbloggs" (and not
>> fred) but using the same user & group ids of "fred" from the old box?
>
> If you change users you may need to drop using the "p" option in
> the tar command so that when you unpack it it will allow the
> permissions to change to the new user/group of fbloggs.
>
> tar cjvf freds/files.tbz2 freds/files
>
> Login as new-user and unpack.
> tar xjvf freds/files.tbz2
>
> If you include the "p" option it will preserve file owner and
> permissions. One thing that may cause problems is mozilla since
> the user name is used in a few places in the
> ~/user/.mozilla/prefs.js file. You can edit it for the new user
> to correct the problem though.
>

Thanks, it's working now. Just ensured that 'fbloggs' took the same user &
group ids as 'fred' and did a
 cp -p -r /mnt/old-disk/fredsfiles /newlocation
This preserved all the user/group/other read/write/execute flags for all
files and directories and ensured perfect transition from old user 'fred'
to new user 'fbloggs'.

-- 
"He who play in / as root and typeth 'rm -fr *' will kill tree immediately.
Don't try this at home kids!"
Debian Linux: Open, free and maintainable. The Linux for real
programmers ;-)


Relevant Pages

  • Re: Why only Adm. able to access programs?
    ... if the user/group is not listed ... them the permissions you want to give them ... button which will bring another window with the same name. ... A new window pops up and has ...
    (microsoft.public.windowsxp.security_admin)
  • permissions changed in tar
    ... which should unpack the path tree with all the ownerships and ... permissions exactly as they were in the source tree (if I understand ... Problem is that if I unpack as root then everything in the unpack ... --same-owner try extracting files with the same ownership as exists in ...
    (alt.os.linux)
  • Re: Why only Adm. able to access programs?
    ... if the user/group is not listed ... > them the permissions you want to give them ... > listed just do the following instructions. ... > users you want to allow to have access to the app. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: List Folder/Read Data
    ... giving the user/group list folder contents and read general permissions on ... You should then see that user/group listed twice ... Once or folder, subfolders, and files and then ...
    (microsoft.public.win2000.security)
  • SUGG permissions
    ... When adding a user/group to a document library, I want the user to be able ... to View, insert, and edit, but not delete items. ... group that doesn't have delete permissions, add the user to that group, then ... **Chicks Make Great Programmers Too** ...
    (microsoft.public.sharepoint.windowsservices)