Attention: This does, what it should, it delete’s the user and all the files for userid “admin” without any questions and confirmations. Ensure you have created another user with admin privileges before.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
But result might be same. I guess as long as the user is disabled, you maybe not able to access files of this user from WebInterface. Probably something you need to test.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Edit. I go to my /mnt/Toshiba/dietpi_userdata/nextcloud_data and don't see folder with my new user admin name. I see Admin folder and two regular users but not that new admin user. That means new admin share files and folders with old admin user?
I guess if you enable the user, it should be available again. BTW you could just run ncc command. There you will see all available options. As this is all NextCloud specific, it might be good to check as well on NextCloud websites. These guys are more specialist on NextCloud questions as we are on this Board The only difference is that on DietPi you can use ncc command instead of occ.
You may want to configure your Nextcloud from command line via occ command: Nextcloud admin manual
We added a shortcut to the otherwise necessary 'sudo -u www-data php /var/www/nextcloud/occ':
Just use 'ncc' followed by the desired command inside your terminal.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team