I want to change the user ID of www-data, but not touch the files in the home directory.
usermod man page:
-u, --uid UID
The new numerical value of the user's ID.
This value must be unique, unless the -o option is used. The value must be non-negative.
The user's mailbox, and any files which the user owns and which are located in the user's home directory will have the file
user ID changed automatically.
The ownership of files outside of the user's home directory must be fixed manually.
So is there a way to execute this without that side effect or do I have to edit /etc/passwd manually using sed or something like that?
www-datauser? – terdon Apr 14 '23 at 11:27/var/wwwfolder is mounted, so the files already should have the correct ID, but the user's ID is not the right one. – Alex Apr 14 '23 at 18:37