Changing user id in linux

2012-02-22 · 1 min read
tutorials

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 {} \;
Foivos Zakkak
Authors
R&D Software Engineer
Foivos (pronounced [‘fivos]) Zakkak is a Software Engineer in IBM’s (previously Red Hat’s) Java platform team working on Mandrel, GraalVM and Quarkus.