How to login mailinabox/nextcloud admin

root@box:~# ll mailinabox/tools/owncloud-unlockadmin.sh
-rwxr-xr-x 1 root root 763 Apr 29 23:20 mailinabox/tools/owncloud-unlockadmin.sh*
root@box:~# sudo mailinabox/tools/owncloud-unlockadmin.sh admin@turvyhost.com
mailinabox/tools/owncloud-unlockadmin.sh: line 11: ./mail.py: No such file or directory
I am going to unlock admin features for admin@turvyhost.com.
You can provide another user to unlock as the first argument of this script.

WARNING: you could break mail-in-a-box when fiddling around with Nextcloud's admin interface
If in doubt, press CTRL-C to cancel.

Press enter to continue.

user not found

I have solved the issues.
First I did the following:
sudo www-data php /usr/local/lib/owncloud/occ group:add (the user)
sudo mailinabox/tools/owncloud-unlockadmin.sh (User)

That’s it

So thank you all who has participated helping to solve it

1 Like

Is there actually an account called admin@turvyhost.com, or is that being aliased to another account?

2 Likes

Glad you got it working.