I have a uid that I need to change however I need to know the process of doing so as this user is a vital user that has ownership of several running pids on this server. (webserver)
This user (admin) has a uid of 1003 on this server (server-A). However, on all our other servers (server-B-G)the uid is 1001. The reason for changing the uid is that the nfs mount that is mounted on server-A and on all the servers does not work right due to the uid difference. We have diagnosed to this point.
My question ... admin is the owner of several running pids. So in order to change the uid, do I need to:
- stop ALL pids owned by admin
- >usermod -u 1001 admin
- then start back up the jobs that admin runs
I have verified that there are no files/dirs owned by uid 1003 but the ownership is admin.
I can run a find >find / -uid 1003 - to locate any orphaned files/dirs before I start back up any jobs that require admin ownership.
Then >chown the file/dir.
Does this appear to be a viable plan to get this uid corrected?