# Locked out by 2FA NC 2TB VM

**URL:** <https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** vm\
**Created:** [May 28, 2021, 2:57pm UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340 "2021-05-28T14:57:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CDnCO](https://help.nextcloud.com/letter_avatar/cdnco/32/5_5575768a8748004e209b776fc1b2916d.png) [@CDnCO](https://help.nextcloud.com/u/CDnCO)\
**Post date:** [May 28, 2021, 2:57pm UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/1 "2021-05-28T14:57:12Z")

</div>

I spent the last 2 days trying tog et the Hansen 2TB NC VM to work. Finaly got past all the bugs and bad documentation to get it up and working and I made the mistake that when enabling 2FA and setting it so it was enforced on sleected groups and did not select any groups that it would not enforce it yet. Nope. Went to log in this morning and no accounts can log in not even the admin account. I found a bunch of people posting about it in this form to use CLI and OCC commands but I can’t access them from the Hansen VM using the official instructions: [Using the occ command — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#) Can anyone give me the correct command for the official Hansen NC VM on Ubuntu?

---

<div class="post-metadata">

**Author:** ![anon71540698](https://help.nextcloud.com/letter_avatar/anon71540698/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon71540698](https://help.nextcloud.com/u/anon71540698)\
**Post date:** [May 28, 2021, 3:02pm UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/2 "2021-05-28T15:02:28Z")

</div>

CLI access to your VM is independent from what runs on that VM, i.e. Nextcloud in your case…

Where is the VM running? What is its IP address? Can you SSH into it?

---

<div class="post-metadata">

**Author:** ![CDnCO](https://help.nextcloud.com/letter_avatar/cdnco/32/5_5575768a8748004e209b776fc1b2916d.png) [@CDnCO](https://help.nextcloud.com/u/CDnCO)\
**Post date:** [May 28, 2021, 5:57pm UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/3 "2021-05-28T17:57:27Z")

</div>

DUDE. I never said I did not have CLI access. I said the instructions presented do not work for running OCC commands on the official VM. I can get access to CLI no problem either from SSH or direct console in vCenter. The instructions provided do not work with the NextCloud Official VM provided by NextCloud Partner Hansen IT.

---

<div class="post-metadata">

**Author:** ![anon71540698](https://help.nextcloud.com/letter_avatar/anon71540698/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon71540698](https://help.nextcloud.com/u/anon71540698)\
**Post date:** [May 28, 2021, 6:41pm UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/4 "2021-05-28T18:41:15Z")

</div>

Dude, claiming “the instructions presented do not work for running OCC commands” to get help comes normally from people having no clue what CLI means…

To be more specific: wtf “do not work for running OCC commands” means?  
Since you know everything from SSH to vCenter, how about a screenshot? No? A log entry?

Don’t tell me a message like this brought you here?

```auto
 Could not open input file: occ 
```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [May 28, 2021, 8:59pm UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/5 "2021-05-28T20:59:08Z")

</div>

@CDnCO I understand loosing access to data and screaming users maybe put some pressure on you.  
don’t forget people in this forum spend spare time to help you - your writing and expectations definitely definitely **miss** the fact this is a free support forum run by volunteers:

> [@CDnCO](#):
>
> NextCloud Official VM provided by NextCloud Partner Hansen IT.

then just buy a support contract and Nextcloud Gmbh or Hansen IT will be happy to solve you problem.

your wording is **really unpolite** :

> [@CDnCO](#):
>
> Can anyone give me the correct command

> [@CDnCO](#):
>
> DUDE.

what you didn’t write - e.g. what you tried so far and where you failed - maybe this would have helped much more.

thank a lot @anon71540698 for staying cool

PS. I miss a “blacklist” button for users like @CDnCO

---

<div class="post-metadata">

**Author:** ![enoch85](https://help.nextcloud.com/user_avatar/help.nextcloud.com/enoch85/32/49403_2.png) [@enoch85](https://help.nextcloud.com/u/enoch85)\
**Post date:** [June 25, 2021, 9:18am UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/6 "2021-06-25T09:18:11Z")

</div>

> [@CDnCO](#):
>
> inaly got past all the bugs and bad documentation to get it up and working

Please elaborate how we can improve it.

Also, regarding `occ`; in the VM there’s a built in command: `nextcloud_occ` which lets you run stuff like `nextcloud_occ app:install whatever`

Hope it helps!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 9:46am UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/7 "2024-12-13T09:46:20Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 9:46am UTC](https://help.nextcloud.com/t/locked-out-by-2fa-nc-2tb-vm/117340/8 "2024-12-13T09:46:22Z")

</div>


