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
Validating quota
Analysing files of USER1ā¦
0 [->--------------------------]
Collecting all share information for files and folders of USER1 ā¦
5 [============================]
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%
root@nextcloud:~#
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.
Of course -u for user
What kind of user is user www-data?
and why did the command not work when I was as a root user in the /var/www/nextcloud/ folder where occ file exits?