[Slightly OT] changing UID of a user to 1 (was Re: [OpenAFS] Debian - openafs -noauth problems)

Madhusudan Singh singh.madhusudan@gmail.com
Sun, 28 Aug 2005 15:20:46 -0400


> > In addition, how does one change the AFS UID of a member of
> > system:administrators ? (Such as m_singh above) ?
>
> That m_singh is a member of system:administrators makes no difference to
> how you would change the AFS UID.  The answer is, you can't (at least so
> far as I know; I welcome correction from anyone else).  You have to create
> a new user with a different name and the new UID, add it to the AFS groups
> that the old user was in, delete the old user, and then pts rename the new
> user to the old user.  I think it actually may be somewhat difficult for
> you to do this, because in order to do it you need to be able to
> authenticate as a different user who's also in system:administrators or
> you'll lose access when you pts delete the old user and then won't be able
> to finish the renaming of the new user to something that matches the
> Kerberos principal.  This may be a bit tricky when you don't control the
> KDC and can't create a new principal.

Well, that seems to leave only one option. Change the Unix ID of the user in 
question to 1. How do I :

Change the UID of the user "daemon" to something else (say 11), change all the 
ownerships on all the files owned by it on the system consistently and make 
sure that no processes crash.