Todd A. Jacobs wrote:

> Looks like I was able to answer my own question. The system apparently
> stores the uid as part of the inode or directory information, so if I
> change the uid of the user, I have to then go chown all the files and
> directorys to match the new id's.

Well, yeah, I was going to comment on that.  That's how you know who's the
owner of filesystem objects.

> Unfortunately, this isn't going to be
> tenable. I suppose I'll just have to live with the high uid's for a while.
> :)

Well, that's really up to you.  But a simple run as follows; assume the
old UID was 2000, and the new UID is 'newown', then just:

        find / -user 2000 -print | xargs chown newown:

This will, in one pass, find any file or directory owned by 2000 and change
the owner to 'newown', and the group to that of 'newown'.  (Why the numeric
UID?  I'm assuming you've remapped the UID/GID for 'newown' already.  Don't
forget the shadow password file, too!)

Cheers,
-- 
        Dave Ihnat
        [EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to