Changing user id in linux

As a different user execute

usermod -u  username
find / -user ; -exec chown -h ; {} \;

example:

usermod -u 2179 user1
find / -user 1000 -exec chown -h 2179 {} \;
Previous
Next