CentOS 6.x / OpenVZ
Recently my VPS provider moved my OpenVZ container to a new server. After that move, I've noticed that files/directories for one of my user accounts show an odd owner / group.
For example I'll see stuff like this:
[root@exampleserver ~] ls -l /home/foouser -rw-rw-r-- 1 65534 65534 370123 Jan 1 2014 ExampleFile.txt
I'd expect to see "foouser" as the owner/group instead of 65534.
Likewise, when I try switching to the user, I get an error:
[root@exampleserver ~] su - foouser su: warning: cannot change directory to /home/foouser: Permission denied -bash: /home/foouser/.bash_profile: Permission denied
My guess is that some numeric identifier for the user accounts didn't persist with the move so now my user account isn't associated with old files.
What would cause this and how can I fix it?