Re: Permission problems after install of F16 comming from F14.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/07/2012 08:20 PM, Erik P. Olsen wrote:
> On 07/06/12 01:27, 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.
>>
>> 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.
>>
> I thought of this at the very beginning but I never found out how to change userID
> from 500 to 1000. Please explain how to do that.
>

OK....  Let's say that your user name on the F14 system is olsen.....

The entry in /etc/passwd is probably

olsen:x:500:500:Erik olsen:/home/olsen:/bin/bash

and /etc/group is probably

olsen:x:500:

Just change those to...

olsen:x:1000:1000:Erik olsen:/home/olsen:/bin/bash
and
olsen:x:1000:

And then....

chown -R 1000:1000 /home/olsen

along with any other directories or file systems that were previously owned by uid
500 gid 500.

That's all...



-- 
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux