Feature or bug?
# sudo -u www-data /var/www/nextcloud/occ maintenance:singleuser --on
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "maintenance:singleuser" is not defined.
Did you mean one of these?
maintenance:data-fingerprint
maintenance:mimetype:update-db
maintenance:mimetype:update-js
maintenance:mode
maintenance:update:htaccess
maintenance:repair
1 Like
- Added ‘singleuser’ => true,’ to config.php
- Restart of apache
Does not work. User without admin rights can login …
Problem
- Have a completely missconfigured NC 12.0.0 with about 20 users.
- Installed now a fresh VM from techand.me
- Don’t want to migrate the waste in the old database
- Calendar and Address book had bugs in the DB. This I want to create new from attached clients (i.e. Android Davdroid, Thunderbird)
- Calendar and Address book are only used by me, not by the users (I hope). So for me I would get it working I think.
What I want:
- Creating all users with their passwords and e-mail-addresses
- Restore their data - they may not have synchronization problems
- Restore users group memberships
For that I just exported these data with phpMySqladmin:
oc_accounts.sql
oc_groups.sql
oc_users.sql
oc_weather_city.sql
Any table else usable for my migration? Remember: I have shit in the DB which I want to leave behind me …
Created a new topic for above problems: NC restore without complete database
But this one “maintenance:singleuser” ist still open!
Thanks for clarification @anon99252149!
But how can I now start the NC without maintenance mode and only login for an Admin?
- Deactivating all users via occ while in maintenance mode?
1 Like