Moving the /Home Partition, Permission Issues.

Aart Koelewijn aart at mtack.xs4all.nl
Thu Apr 29 12:42:25 UTC 2010


On Thu, 29 Apr 2010 13:46:03 +0200, Loïc Grenié wrote:

> 2010/4/29 Aart Koelewijn <aart at mtack.xs4all.nl>:
>> On Wed, 28 Apr 2010 14:49:44 -0500, Tuxman wrote:
>>
>>> Aart Koelewijn wrote:
>>>> On Wed, 28 Apr 2010 13:29:09 -0500, Tuxman wrote:
>>>>
>>>>
>>>>> I'm getting ready to install 10.4 (8.04 currently), and I need to
>>>>> rearrange some partitions in preparation.
>>>>>
>>>>> I need to move my /Home partition out of the way temporarily and the
>>>>> only place I have to move it to is an NTFS drive that can't be
>>>>> changed. I can handle all of the repartitioning with GParted without
>>>>> a problem, but I'm weak when it comes to Linux file/folder
>>>>> permission issues.
>>>>>
>>>>> Are there issues here? How do I do this safely? If you can point me
>>>>> to a guide, that would be great. The more cookbookish the better.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>> Make a *.tgz file of it. When you have your new /home partition you
>>>> can move the *.tgz file there and extract it. That will keep the
>>>> permissions as long as you make sure the users keep the same uid.
>>>>
>>>> Aart
>>>>
>>>>
>>>>
>>> User ID is something I hadn't thought about or seen any reference to.
>>> Thanks for bringing it up.
>>>
>>> If this is a complete new install, is choosing the same user name
>>> sufficient?
>>
>> It depends on the order in which you make your users root is always
>> user 0
>> the first user you make when you install (who will have sudo
>> permissions) will be user 1000, the second 1001 and so on. Permissions
>> of files are saved as the uid, not with names. So user 1000 on the new
>> system will own the files user 1000 had on the old system. The name of
>> user 1000 on the new system can differ from the name of user 1000 on
>> the old system.
> 
>     tar now keeps user and group *names* (and number as a fallback), so
>   numbering of users/groups should not be a problem as long as you keep
>   the same names.
> 
>         Loïc

Woh, things are changing much faster then I thought. The last them I used 
tar in this way is over 5 years ago. Thank you for correcting me.

Aart





More information about the ubuntu-users mailing list