TL;DR
In the T&M VM, I would like to do either:
- change from
www-data
to a new user likenextcloud
- keep using
www-data
but change the UID and GID ofwww-data
to something above 1000.
Which one would be better? Will these changes get overwritten or cause problems with the VM scripts?
Full Story
I’m using the T&M VM on a QNAP NAS. Initially, I set up several CIFS shares from the NAS and used the external storage app for those. I think I’d like to move most of the documents to NC’s internal storage, but I want to do this over and with the data directory as an NFS mount. I know how to do that, and how to migrate safely.
My question is about syncing uid:gid
with the NAS. I’m sort of limited to the uid and gid I can pick for users on the QNAP side. In order to make it a real user in the QNAP settings GUI, UID and GID need to be >1000. In the VM, NC runs under the standard www-data:www-data
which is 33:33
on my system.
So, I would like to either run NC under a completely different user, or manually the uid:gid of www-data
to something >1000. Whichever I do, I know I’ll need to update the owner for all files currently owned by www-data
I know the linux commands to get this done, my question is if doing either of these will break anything about the VM management / update scripts. Or if a future update will revert my changes. If either will work, which one is preferred?