I am not a developer and this is a suggestion based on what happened to me.
I created a Nextcloud instance with 12 people gave them all usernames that was just their name ‘John Smith’
As a result I cannot now mention them in comments as they do not appear, so I can’t do @John Smith - it doesn’t work.
And since there is no @John as a username I get @unknownuser
I think when someone creates the username - Nextcloud should not accept a user name with space in the middle.
If anyone has a fix for this I’d be interested - othere wise I need to delete 12 users and recreate them. Which seems to be a hassle.
Thanks for Nextcloud. I love it
I see the difference between these two lines but I obviously miss something because you suggested the second line.
So what am I missing ??
to my mind something is missing before the -u
but I am not a coder so I just copied what was there.
No super expert here… Mainly windows user who’s been having to learn this as I go along.
root@nextcloud:~# sudo -u www-data php /var/www/nextcloud/occ files:transfer-ownership USER1 USER2
Analysing files of USER1…
Collecting all share information for files and folders of USER1 …
Transferring files to test/files/transferred from Julian on 2021-02-04 19-36-15 …
Restoring shares …
Share with id 1 points at deleted file, skipping
1/5 [=====>----------------------] 20%Share with id 9 points at deleted file, skipping
Share with id 10 points at deleted file, skipping
Share with id 15 points at deleted file, skipping
Share with id 17 points at deleted file, skipping
5/5 [============================] 100%
This transfers files but not things like calendar. Probably need to export/import that? This seems clunky… The original user above has a few external storage mapped shares, so I think that’s what is being skipped.