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

Re: [Testbed-admins] Changing user Unix UIDs



The changeuid script seems to just change the emulab string username, and only for unapproved users. I wrote a script to do this which I will try to send over when I have a chance, but the process is essentially this:

1) Pick a new uid you want that is less than 10000
2) Change unix_uid in the users table
3) Change the uid on boss
4) Change the uid on ops
5) chown all user files in /users and /proj

This works better when there isn't an experiment active for a project the user is a member of.

-Jonathan


Jonathan Walsh wrote:
No problem, I hadn't gotten to the point of trying this yet due to the other problems I was having, I will use that script instead (and not bother writing one ;) ).

Thanks

-Jonathan


Robert P Ricci wrote:
Sorry for the delay, we hosted the GENI engineering conference this
week, which has been keeping us busy.

There is in fact a script called changeuid for this purpose.

Thus spake Jonathan Walsh on Thu, Nov 12, 2009 at 05:03:28PM -0500:
I would like to change the Unix uids for users of an Emulab to match another system (to make cross mounting NFS easier). I didn't see a handy script to do this... Would it work to just change the uid of users with chsh on both boss and ops, then change the uid_uuid value in the users table? Or are there other dependencies I am not finding? Obviously I wouldn't want to do this if a given user had an experiment active.

-Jonathan
_______________________________________________
Testbed-admins mailing list
Testbed-admins@flux.utah.edu
http://www.flux.utah.edu/mailman/listinfo/testbed-admins