FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 10-04-2011, 04:30 PM
Ian Malone
 
Default updating users and groups (was Announcing the release of Fedora 16 Beta!!)

On 4 October 2011 16:50, Stephen Gallagher <sgallagh@redhat.com> wrote:
> On Tue, 2011-10-04 at 16:55 +0200, suvayu ali wrote:
>> Hi,
>>
>> On Tue, Oct 4, 2011 at 4:44 PM, Dennis Gilmore <dennis@ausil.us> wrote:
>> > * ** System Accounts. Fedora now standardizes on login.defs as
>> > authority for UID/GID space allocation, and has moved boundary between
>> > system and user accounts from 500 to 1000 to match conventions
>> > followed by several other Linux distributions. Upgrading from a
>> > existing release will not be affected by this change and you can use
>> > kickstart to override this change during installation if necessary.
>> >
>>
>> When one preupgrades to F16 do the old 500+ user ids get converted to
>> 1000+, or is it expected the user will do this manually? In any case I
>> would be interested in knowing how to do this manually.
>
>
> No user IDs should EVER be altered automatically. This is unsafe,
> because it would change file access on the disk (and potentially result
> in a system that was inaccessible).
>
> You probably don't want to change this yourself either, but if you
> REALLY want to change IDs, you would need to use /usr/sbin/usermod to
> change the user's ID, then you would want to run a complicated 'find'
> command starting at the root of the filesystem to search for any file
> owned by the old UID and chown it. Then you'd have to repeat this for
> every user and every group. And then if you have data stored on
> removable disks or network shares, you need to handle those too...
>
> DO NOT DO THIS! It's only going to cause you problems.
>

No need for a (not that complex) find command, see the chown option:
--from=CURRENT_OWNER:CURRENT_GROUP, in conjunction with -R and -L this
makes life fairly easy. Genuinely removeable shares (i.e. those you
might take between computers) have issues with UIDs anyway and are
probably running something without it (e.g. NTFS), semi-removable
shares (e.g. USB drives that are always connected to your machine)
just need to be mounted when you do this.

You would still need to do it for all groups and users that you were
updating, I agree you really don't want to update an existing system
unless you have to (to make it play well with Ubuntu for instance).

--
imalone
--
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
 

Thread Tools




All times are GMT. The time now is 09:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org