View Single Post
Old 09-05-2002, 04:39 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,712
redhead is on a distinguished road
Or use:
usermod -u <new UID> username
But it will leave all owned files from teh user to be owned by the old UID, not the new one.

To handle this, use something like find, with teh parameters to search for files owned by old_uid, and then use xargs to chown them to the new_uid.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote