On Thu, Jun 07, 2012 at 07:27:23AM +0800, Ed Greshko wrote:
> On 06/07/2012 05:26 AM, Erik P. Olsen wrote:
> > I have a number of F14 partitions which must be mounted unchanged on the 
> > new F16
> > system. It turns out that I get unexpected permission problems with this 
> > approach.
> > I use the same user name on both systems but on F14 I got userID 500 
> > whereas on F16
> > it became 1000. I wasn't aware of that but learned it the hard way. When I 
> > chowned
> > the permissions to 1000:1000 it worked on F16 but now not on F14.
> >
> > What is the proper way to fix this problem? I am tempted to reinstall F16 
> > and force
> > my userID to 500, but the system warns me not to create userIDs < 1000. It 
> > is not
> > feasible to clone the partitions due to space constrains so I am not able 
> > to have
> > identical partitions with different permissions.
> >
> 
> The "proper" way to fix this is to do it on the F14 system.
> 
> Change your password entry to have uid:gid of 1000:1000.  Make the change to 
> the
> group file to change it to 1000 as well.
> 
> Then, go to all the top of all partitions/directories owned by 500 and chown 
> -R
> 1000:1000.  In other words, make all the changes on the F14 side. 

And if you're looking for a shortcut command line, as root:

find / -uid 500 -exec chown 1000 '{}' \;
find / -gid 500 -exec chgrp 1000 '{}' \;

> I had to go through this process when I installed F16 since my RHELv4 system 
> had me
> as 500:500 and I NFS mount my directories from there.  Just took 5 or so 
> minutes. 
> 
> Reinstalls are never needed to change a user's gid/uid.

+1

-- 
Paul W. Frields                                http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://redhat.com/   -  -  -  -   http://pfrields.fedorapeople.org/
    The open source story continues to grow: http://opensource.com
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to