[ale] Changing UID for a user

Geoffrey esoteric at 3times25.net
Wed Oct 30 08:11:49 EST 2002




Geoffrey wrote:
> You are correct, the ownership would be screwed up, but a little work 
> prior would resolve the issue.  Create a list of the files the user 
> currently owns:
> 
> find / -user username -print > user-file.lst
> 
> change the user's id, then use the above list to change the ownership of 
> their files back to the new id:
> 
> chown newuser $(< user-file.lst

That should be:

chown newuser $(< user-file.lst)

By the way, something a bit more esoteric may be required if the user 
owns files with names that contain embedded white space.
> 
> John Wells wrote:
> 
>> Is there a way to change an user's UID after the account has been active
>> for sometime without creating major havoc?  My fear is that if I change
>> the UID for the user, all permissions on that user's files will be 
>> hosed. Am I correct in this assumption?
>>
>> Thanks!
>> John
>>
>>
>>
>>
>> ---
>> This message has been sent through the ALE general discussion list.
>> See http://www.ale.org/mailing-lists.shtml for more info. Problems 
>> should be sent to listmaster at ale dot org.
>>
>>
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list